Module transport
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.
Modules§
- and_
then - choice
- dummy
- global_
only - map
- map_err
- memory
- timeout
- Transports with timeouts on the connection setup.
- upgrade
- Configuration of transport protocol upgrades.
Structs§
- Boxed
- A
Boxedtransport is aTransportwhoseDial,ListenerandListenerUpgradefutures areBoxed and only theOutputtype is captured in a type variable. - Dial
Opts - Options to customize the behaviour during dialing.
- Listener
Id - The ID of a single listener.
- Memory
Transport - Transport that supports
/memory/Nmultiaddresses. - Optional
Transport - Transport that is possibly disabled.
- OrTransport
- Struct returned by
or_transport(). - Upgrade
- A custom upgrade on an
Authenticatedtransport.
Enums§
- PortUse
- The port use policy for a new connection.
- Transport
Error - An error during dialing or listening
on a
Transport. - Transport
Event - Event produced by
Transports.
Traits§
- Transport
- A transport provides connection-oriented communication between two peers through ordered streams of data (i.e. connections).