Module rust_ipfs::p2p

source ·
Expand description

P2P handling for IPFS nodes.

Structs

A description of currently active connection.
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.
A wrapper for Multiaddr that does not contain Protocol::P2p.
Abstraction of IdentifyInfo but includes PeerId
Defines the configuration for an IPFS swarm.

Enums

Represents the result of a Kademlia query.

Functions

Creates a new IPFS swarm.

Type Definitions

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