pub struct MapErr<T, F> { /* fields omitted */ }The raw connection to a peer.
type Error = TErr
Error that can happen when dialing or listening.
The listener produces incoming connections. Read more
After a connection has been received, we may need to do some asynchronous pre-processing on it (e.g. an intermediary protocol negotiation). While this pre-processing takes place, we want to be able to continue polling on the listener. Read more
A future which indicates that we are currently dialing to a peer.
Listen on the given multiaddr. Returns a stream of incoming connections, plus a modified version of the Multiaddr. This new Multiaddr is the one that that should be advertised to other nodes, instead of the one passed as parameter. Read more
Takes a multiaddress we're listening on (server), and tries to convert it to an externally-visible multiaddress. In order to do so, we pass an observed address which a remote node observes for one of our dialers. Read more
Turns this Transport into an abstract boxed transport.
Applies a function on the output of the Transport.
Applies a function on the errors generated by the futures of the Transport.
Builds a new struct that implements Transport that contains both self and other. Read more
fn with_upgrade<U, O, E>(self, upgrade: U) -> Upgrade<Self, U> where Self: Sized, Self::Output: AsyncRead + AsyncWrite, U: InboundUpgrade<Self::Output, Output = O, Error = E>, U: OutboundUpgrade<Self::Output, Output = O, Error = E>, | [src] |
Wraps this transport inside an upgrade. Whenever a connection that uses this transport is established, it is wrapped inside the upgrade. Read more
Wraps this transport inside an upgrade. Whenever a connection that uses this transport is established, it is wrapped inside the upgrade. Read more
Adds a timeout to the connection and upgrade steps for all the sockets created by the transport. Read more
Adds a timeout to the connection and upgrade steps for all the outgoing sockets created by the transport. Read more
Adds a timeout to the connection and upgrade steps for all the incoming sockets created by the transport. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Mutably borrows from an owned value. Read more