Type Alias TcpFramedStream Copy item path Source
Summary pub type TcpFramedStream<Codec: Decoder> = Receiver <Result <(<Codec as Decoder>::Item, SocketAddr ), <Codec as Decoder>::Error>>;
Expand description A framed TCP Stream
(receiving).
pub struct TcpFramedStream<Codec: Decoder> { }
Implementations Receive a value asynchronously.
Poll for a value.
NOTE: takes &mut self
to prevent multiple concurrent receives.
Closes this receiving end, not allowing more values to be sent while still allowing already-sent values to be consumed.
Trait Implementations Executes the destructor for this type.
Read more Values yielded by the stream.
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted.
Read more Returns the bounds on the remaining length of the stream.
Read more