codecs::decoding::framing

Trait Framer

source
pub trait Framer:
    Decoder<Item = Bytes, Error = BoxedFramingError>
    + DynClone
    + Debug
    + Send
    + Sync { }
Expand description

Produce byte frames from a byte stream / byte message.

Implementors§

source§

impl<Decoder> Framer for Decoder
where Decoder: Decoder<Item = Bytes, Error = BoxedFramingError> + Clone + Debug + Send + Sync,

Default implementation for Framers that implement tokio_util::codec::Decoder.