type Subscription: Stream<Item = NetworkEvent> + Send + Unpin
pub fn local_peer_id(&self) -> &PeerId
pub fn listeners(&self, tx: Sender<Vec<Multiaddr>>)
pub fn external_addresses(&self, tx: Sender<Vec<Multiaddr>>)
pub fn get(&self, cid: Cid)
pub fn cancel_get(&self, cid: Cid)
pub fn sync(&self, cid: Cid, syncer: Arc<dyn BitswapSync>)
pub fn cancel_sync(&self, cid: Cid)
pub fn provide(&self, cid: Cid)
pub fn unprovide(&self, cid: Cid)
pub fn subscribe(&self) -> Self::Subscription