[][src]Module ipfs::p2p

P2P handling for IPFS nodes.

Structs

Connection

A description of currently active connection.

MultiaddrWithPeerId

A Multiaddr paired with a discrete PeerId. The Multiaddr can contain a Protocol::P2p, but it's not as easy to work with, and some functionalities don't support it being contained within the Multiaddr.

MultiaddrWithoutPeerId

A wrapper for Multiaddr that does not contain Protocol::P2p.

SwarmOptions

Defines the configuration for an IPFS swarm.

Enums

KadResult

Represents the result of a Kademlia query.

Functions

create_swarm

Creates a new IPFS swarm.

Type Definitions

TSwarm

Type alias for [libp2p::Swarm] running the [behaviour::Behaviour] with the given IpfsTypes.