Module libp2p_core::transport

source ·
Expand description

Connection-oriented communication channels.

The main entity of this module is the Transport trait, which provides an interface for establishing connections with other nodes, thereby negotiating any desired protocols. The rest of the module defines combinators for modifying a transport through composition with other transports or protocol upgrades.

Re-exports§

Modules§

Structs§

  • A Boxed transport is a Transport whose Dial, Listener and ListenerUpgrade futures are Boxed and only the Output type is captured in a type variable.
  • The ID of a single listener.
  • Transport that is possibly disabled.

Enums§

Traits§

  • A transport provides connection-oriented communication between two peers through ordered streams of data (i.e. connections).