Module libp2prs_core::transport[][src]

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.

Modules

dummy
memory
protector

The pnet protocol implements Pre-shared Key Based Private Networks in libp2p, as specified in the spec

timeout

Transports with timeouts on the connection setup.

upgrade

Transport upgrader.

Structs

Incoming

Enums

ListenerEvent

Event produced by [Transport::Listener]s.

TransportError

An error during dialing or [accepting][Transport::IListener::accept] on a Transport.

Traits

ConnectionInfo

The trait for the connection, which is bound by Transport::Output mark as ‘Send’ due to Transport::Output must be ‘Send’

Transport

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

TransportListener

Type Definitions

IListener

Trait object for TransportListener

ITransport

Trait object for Transport