pub fn tcp_lines( stream: TcpStream, ) -> (FramedWrite<OwnedWriteHalf, LinesCodec>, FramedRead<OwnedReadHalf, LinesCodec>)
Helper creates a TCP Stream and Sink for strings delimited by newlines.
Stream
Sink
str