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