Skip to main content

framed

Function framed 

Source
pub fn framed<C>(stream: Box<dyn ByteStream>, codec: C) -> FramedConn<C>
where C: Codec<ByteBuffer> + Clone + 'static, C::Error: From<Error> + Into<Error> + Send + Sync, C::Message: Send + Sync + 'static,
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.