pub struct LocalTcpStream { /* private fields */ }

Trait Implementations§

Formats the value using the given formatter. Read more
Determines how long the socket will remain in a TIME_WAIT after it disconnects (only the one that initiates the close will be in a TIME_WAIT state thus the clients should always do this rather than the server)
Returns how long the socket will remain in a TIME_WAIT after it disconnects
Sends out a datagram or stream of bytes on this socket
FLushes all the datagrams
Recv a packet from the socket
Peeks for a packet from the socket
Sets how many network hops the packets are permitted for new connections
Returns the maximum number of network hops before packets are dropped
Returns the local address for this socket
Returns the status/state of the socket
Sets the timeout for a specific action on the socket
Returns one of the previous set timeouts
Sets the receive buffer size which acts as a trottle for how much data is buffered on this side of the pipe
Size of the receive buffer that holds all data that has not yet been read
Sets the size of the send buffer which will hold the bytes of data while they are being sent over to the peer
Size of the send buffer that holds all data that is currently being transmitted.
When NO_DELAY is set the data that needs to be transmitted to the peer is sent immediately rather than waiting for a bigger batch of data, this reduces latency but increases encapsulation overhead.
Indicates if the NO_DELAY flag is set which means that data is immediately sent to the peer without waiting. This reduces latency but increases encapsulation overhead.
Returns the address (IP and Port) of the peer socket that this is conencted to
Causes all the data held in the send buffer to be immediately flushed to the destination peer
Shuts down either the READER or WRITER sides of the socket connection.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more