pub fn tcp_bytestream(
stream: TcpStream,
) -> (FramedWrite<OwnedWriteHalf, BytesCodec>, FramedRead<OwnedReadHalf, BytesCodec>)
Expand description
Helper creates a TCP Stream
and Sink
for undelimited streams of Bytes
.
pub fn tcp_bytestream(
stream: TcpStream,
) -> (FramedWrite<OwnedWriteHalf, BytesCodec>, FramedRead<OwnedReadHalf, BytesCodec>)
Helper creates a TCP Stream
and Sink
for undelimited streams of Bytes
.