pub fn framed<C>(stream: Box<dyn ByteStream>, codec: C) -> FramedConn<C>Expand description
Convert a ByteStream + codec into a FramedConn.
The codec handles both framing and serialization over the
byte stream. Call split() for concurrent read/write.