pub fn unix_framed<Codec>(
stream: UnixStream,
codec: Codec,
) -> (FramedWrite<OwnedWriteHalf, Codec>, FramedRead<OwnedReadHalf, Codec>)where
Codec: Clone + Decoder,Available on Unix only.
Expand description
Helper creates a Unix Stream and Sink from the given socket, using the given Codec to
handle delineation between inputs/outputs.