Function dfir_rs::util::unix_framed

source ยท
pub fn unix_framed<Codec>(
    stream: UnixStream,
    codec: Codec,
) -> (FramedWrite<OwnedWriteHalf, Codec>, FramedRead<OwnedReadHalf, Codec>)
where Codec: Clone + Decoder,
Expand description

Helper creates a Unix Stream and Sink from the given socket, using the given Codec to handle delineation between inputs/outputs.