Crate libp2p

source ·
Expand description

libp2p is a modular peer-to-peer networking framework.

To learn more about the general libp2p multi-language framework visit libp2p.io.

To get started with this libp2p implementation in Rust, please take a look at the tutorials. Further examples can be found in the examples directory.

Re-exports

Modules

Macros

Structs

  • Representation of a Multiaddr.
  • Identifier of a peer of the network.
  • Identifies a protocol for a stream.
  • Contains the state of the network, plus the way it should behave.

Enums

Traits

  • Possible upgrade on an inbound connection or substream.
  • Possible upgrade on an outbound connection or substream.
  • A transport provides connection-oriented communication between two peers through ordered streams of data (i.e. connections).
  • Trait automatically implemented on all objects that implement Transport. Provides some additional utilities.

Functions

  • development_transportNon-WebAssembly and tcp and dns and websocket and noise and yamux and async-std
    Builds a Transport based on TCP/IP that supports the most commonly-used features of libp2p:
  • tokio_development_transportNon-WebAssembly and tcp and dns and websocket and noise and yamux and tokio
    Builds a Transport based on TCP/IP that supports the most commonly-used features of libp2p: