Trait TokioFrame

Source
pub trait TokioFrame {
    type Error;

    // Required methods
    fn check(buf: &mut impl Buf) -> Result<(), Self::Error>;
    fn parse(buf: &mut impl Buf) -> Result<Self, Self::Error>
       where Self: Sized;
}

Required Associated Types§

Required Methods§

Source

fn check(buf: &mut impl Buf) -> Result<(), Self::Error>

Source

fn parse(buf: &mut impl Buf) -> Result<Self, Self::Error>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§