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§
pub use self::choice::OrTransport;
pub use self::memory::MemoryTransport;
pub use self::upgrade::Upgrade;
Modules§
- and_
then - choice
- dummy
- map
- map_err
- memory
- timeout
- Transports with timeouts on the connection setup.
- upgrade
- Configuration of transport protocol upgrades.
Structs§
- Boxed
- A
Boxed
transport is aTransport
whoseDial
,Listener
andListenerUpgrade
futures areBox
ed and only theOutput
andError
types are captured in type variables. - Optional
Transport - Transport that is possibly disabled.
Enums§
- Listener
Event - Event produced by
Transport::Listener
s. - Transport
Error - An error during dialing or listening
on a
Transport
.
Traits§
- Transport
- A transport provides connection-oriented communication between two peers through ordered streams of data (i.e. connections).