pub struct TcpTransport { /* private fields */ }
Expand description

Represents a Transport that leverages a TCP stream

Implementations

Creates a new stream by connecting to a remote machine at the specified IP address and port

Returns the IP address that the stream is connected to

Returns the port that the stream is connected to

Trait Implementations

Formats the value using the given formatter. Read more
Attempts to reconnect an already-established connection.
Tries to read data from the transport into the provided buffer, returning how many bytes were read. Read more
Try to write a buffer to the transport, returning how many bytes were written. Read more
Waits for the transport to be ready based on the given interest, returning the ready status. 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.