Trait codecs::encoding::framing::Framer

source ·
pub trait Framer:
    Encoder<(), Error = BoxedFramingError>
    + DynClone
    + Debug
    + Send
    + Sync { }
Expand description

Wrap bytes into a frame.

Implementors§

source§

impl<Encoder> Framer for Encoder
where Encoder: Encoder<(), Error = BoxedFramingError> + Clone + Debug + Send + Sync,

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