Function rust_ipfs::p2p::create_swarm
source · pub async fn create_swarm<C>(
keypair: &Keypair,
options: SwarmOptions,
swarm_config: SwarmConfig,
transport_config: TransportConfig,
repo: Repo,
span: Span,
__arg6: (Option<C>, Option<Box<dyn Fn(&Keypair, Option<Transport>) -> Result<Boxed<(PeerId, StreamMuxerBox)>> + Sync + Send + 'static>>)
) -> Result<TSwarm<C>, Error>where
C: NetworkBehaviour,
<C as NetworkBehaviour>::ToSwarm: Debug + Send,
Expand description
Creates a new IPFS swarm.