pub struct GenTcpTransport<T>where
    T: Provider + Send,
{ /* private fields */ }

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

When port reuse is disabled and hence ephemeral local ports are used for outgoing connections, the returned address is the observed address with the port replaced by the port of the listen address.

If port reuse is enabled, Some(observed) is returned, as there is a chance that the observed address and port are reachable for other peers if there is a NAT in the way that does endpoint- independent filtering. Furthermore, even if that is not the case and TCP hole punching techniques must be used for NAT traversal, the observed address is still the one that a remote should connect to for the purpose of the hole punching procedure, as it represents the mapped IP and port of the NAT device in front of the local node.

None is returned if one of the given addresses is not a TCP/IP address.

Poll all listeners.

The result of a connection setup process, including protocol upgrades. Read more
An error that occurred during connection setup.
A pending Output for an outbound connection, obtained from dialing. Read more
A pending Output for an inbound connection, obtained from the Transport stream. Read more
Listens on the given [Multiaddr] for inbound connections.
Remove a listener. Read more
Dials the given [Multiaddr], returning a future for a pending outbound connection. Read more
As Transport::dial but has the local node act as a listener on the outgoing connection. Read more
Applies a function on the connections created by the transport.
Applies a function on the errors generated by the futures of the transport.
Adds a fallback transport that is used when encountering errors while establishing inbound or outbound connections. Read more
Applies a function producing an asynchronous result to every connection created by this transport. Read more
Begins a series of protocol upgrades via an upgrade::Builder. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.