Function hydroflow::util::tcp_bytestream
source · 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
.