pub enum FromSliceError {
Len(LenError),
LinuxSll(HeaderError),
Macsec(HeaderError),
Ip(HeaderError),
IpAuth(HeaderError),
Ipv4(HeaderError),
Ipv6(HeaderError),
Ipv6Exts(HeaderError),
Tcp(HeaderError),
}Expand description
“Catch all” error for all from_slice errors (supports automatic conversion from all
other slice errors).
This type aggregates all errors that can be caused by decoding from a slice.
This type can be used as a “catch all” type for errors caused by from_slice functions
as all errors from these functions can be converted into this type.
Variants§
Len(LenError)
Error when parsing had to be aborted because of a length error (usually not enough data being available).
LinuxSll(HeaderError)
Error when decoding an Linux SLL header.
Macsec(HeaderError)
Error when decoding MACsec header.
Ip(HeaderError)
Error while parsing a IP header.
IpAuth(HeaderError)
Error while parsing a IP authentication header.
Ipv4(HeaderError)
Error while parsing a IPv4 header.
Ipv6(HeaderError)
Error while parsing a IPv6 header.
Ipv6Exts(HeaderError)
Error while parsing a IPv6 extension header.
Tcp(HeaderError)
Error while parsing a TCP extension header.
Implementations§
Source§impl FromSliceError
impl FromSliceError
pub fn len(&self) -> Option<&LenError>
pub fn linux_sll(&self) -> Option<&HeaderError>
pub fn macsec(&self) -> Option<&HeaderError>
pub fn ip(&self) -> Option<&HeaderError>
pub fn ip_auth(&self) -> Option<&HeaderError>
pub fn ipv4(&self) -> Option<&HeaderError>
pub fn ipv6(&self) -> Option<&HeaderError>
pub fn ipv6_exts(&self) -> Option<&HeaderError>
pub fn tcp(&self) -> Option<&HeaderError>
Trait Implementations§
Source§impl Clone for FromSliceError
impl Clone for FromSliceError
Source§fn clone(&self) -> FromSliceError
fn clone(&self) -> FromSliceError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FromSliceError
impl Debug for FromSliceError
Source§impl Display for FromSliceError
impl Display for FromSliceError
Source§impl Error for FromSliceError
impl Error for FromSliceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()