pub async fn list_providers(&mut self, hash: &str) -> HashSet<PeerId> {
        let (sender, receiver) = oneshot::channel();
        self.sender
            .send(Command::ListProviders {
                hash: String::from(hash),
                sender,
            })
            .await
            .expect("Command receiver not to be dropped.");
        receiver.await.expect("Sender not to be dropped.")
    }
/// List all peers in the swarm that are providing
/// the artifact with the specified `hash`.
List all peers in the swarm that are providing
the artifact with the specified `hash`.
List all peers in the swarm that are providing the artifact with the specified ` hash ` .
pub async fn list_providers(&mut self, hash: &str) -> HashSet<PeerId> {
        let (sender, receiver) = oneshot::channel();
        self.sender
            .send(Command::ListProviders {
                hash: String::from(hash),
                sender,
            })
            .await
            .expect("Command receiver not to be dropped.");
        receiver.await.expect("Sender not to be dropped.")
    }
pub async fn list_providers ( & mut self , hash : & str ) -> HashSet < PeerId > { let ( sender , receiver ) = oneshot :: channel ( ) ; self . sender . send ( Command :: ListProviders { hash : String :: from ( hash ) , sender , } ) . await . expect ( " " ) ; receiver . await . expect ( " " ) }
List all peers in the swarm that are providing
the artifact with the specified `hash`.
List all peers in the swarm that are providing the artifact with the specified ` hash ` .
&mut self
hash
&str
&mut self
hash
&str