Trait net_parse::ParseOps
[−]
[src]
pub trait ParseOps<'a>: Sized { 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
fn to_bytes(self) -> Result<Vec<u8>, ConvError>
fn from_bytes(_: &'a [u8]) -> Result<Self, ConvError>
fn strip_header(_: &[u8]) -> Result<&[u8], ConvError>
Implementors
impl<'a> ParseOps<'a> for EthHdr<'a>