HeliaWithLibp2p

Trait HeliaWithLibp2p 

Source
pub trait HeliaWithLibp2p<T>: Helia
where T: NetworkBehaviour + Send + 'static,
{ // Required method fn libp2p(&self) -> Arc<Mutex<Swarm<T>>>; }
Expand description

Generic Helia trait with libp2p type parameter for concrete implementations

Required Methods§

Source

fn libp2p(&self) -> Arc<Mutex<Swarm<T>>>

The libp2p swarm instance (wrapped in Arc<Mutex<>> for thread safety)

Implementors§