Trait ParseOps

Source
pub trait ParseOps<'a>: Sized {
    // Required methods
    fn to_bytes(self) -> Result<Vec<u8>, ConvError>;
    fn from_bytes(_: &'a [u8]) -> Result<Self, ConvError>;
    fn strip_header(_: &[u8]) -> Result<&[u8], ConvError>;
}

Required Methods§

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> ParseOps<'a> for EthHdr<'a>