[][src]Module libp2p_core::transport

Handles entering a connection with a peer.

The main element of this module is the Transport trait. It is implemented on objects that allow dialing and listening.

The rest of the module holds combinators that allow tweaking an implementation of Transport, combine multiple transports together, or combine a transport with an upgrade.

Re-exports

pub use self::choice::OrTransport;
pub use self::memory::connector;
pub use self::upgrade::Upgrade;

Modules

and_then
boxed
choice
map
map_err
memory
timeout

Wraps around a Transport and adds a timeout to all the incoming and outgoing connections.

upgrade

Enums

TransportError

Error that can happen when dialing or listening.

Traits

Transport

A transport is an object that can be used to produce connections by listening or dialing a peer.