FromBytesWithHeader

Trait FromBytesWithHeader 

Source
pub trait FromBytesWithHeader<'a, H> {
    type Output: Sized;

    // Required method
    fn from_bytes_with_header(
        slice: &'a [u8],
        header: &H,
    ) -> Result<Message<Self::Output>>;
}

Required Associated Types§

Required Methods§

Source

fn from_bytes_with_header( slice: &'a [u8], header: &H, ) -> Result<Message<Self::Output>>

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§

Source§

impl<'a, H, T: FromBytes<'a>> FromBytesWithHeader<'a, H> for T

Source§

type Output = <T as FromBytes<'a>>::Output