pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn builder(endpoint: &Endpoint) -> ClientBuilder
Sourcepub async fn put_blob(
&mut self,
node: impl Into<NodeAddr>,
hash: Hash,
format: BlobFormat,
name: String,
) -> Result<(), Error>
pub async fn put_blob( &mut self, node: impl Into<NodeAddr>, hash: Hash, format: BlobFormat, name: String, ) -> Result<(), Error>
Transfer the blob from the local iroh node to the service node.
Sourcepub async fn get_tag(&mut self, name: String) -> Result<Option<Hash>, Error>
pub async fn get_tag(&mut self, name: String) -> Result<Option<Hash>, Error>
Get the Hash
behind the tag, if available.
Sourcepub async fn put_gossip_topic(
&mut self,
topic: TopicId,
label: String,
bootstrap: Vec<NodeId>,
) -> Result<(), Error>
pub async fn put_gossip_topic( &mut self, topic: TopicId, label: String, bootstrap: Vec<NodeId>, ) -> Result<(), Error>
Create a gossip topic.
Sourcepub async fn delete_gossip_topic(&mut self, topic: TopicId) -> Result<(), Error>
pub async fn delete_gossip_topic(&mut self, topic: TopicId) -> Result<(), Error>
Delete a gossip topic.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more