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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Available on crate feature std only.
impl Error for FromSliceError
Available on crate feature
std only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<HeaderError> for FromSliceError
impl From<HeaderError> for FromSliceError
Source§fn from(value: HeaderError) -> Self
fn from(value: HeaderError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderError> for FromSliceError
impl From<HeaderError> for FromSliceError
Source§fn from(value: HeaderError) -> Self
fn from(value: HeaderError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderError> for FromSliceError
impl From<HeaderError> for FromSliceError
Source§fn from(value: HeaderError) -> Self
fn from(value: HeaderError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderError> for FromSliceError
impl From<HeaderError> for FromSliceError
Source§fn from(value: HeaderError) -> Self
fn from(value: HeaderError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderError> for FromSliceError
impl From<HeaderError> for FromSliceError
Source§fn from(value: HeaderError) -> Self
fn from(value: HeaderError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderError> for FromSliceError
impl From<HeaderError> for FromSliceError
Source§fn from(value: HeaderError) -> Self
fn from(value: HeaderError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderError> for FromSliceError
impl From<HeaderError> for FromSliceError
Source§fn from(value: HeaderError) -> Self
fn from(value: HeaderError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderSliceError> for FromSliceError
impl From<HeaderSliceError> for FromSliceError
Source§fn from(value: HeaderSliceError) -> Self
fn from(value: HeaderSliceError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderSliceError> for FromSliceError
impl From<HeaderSliceError> for FromSliceError
Source§fn from(value: HeaderSliceError) -> Self
fn from(value: HeaderSliceError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderSliceError> for FromSliceError
impl From<HeaderSliceError> for FromSliceError
Source§fn from(value: HeaderSliceError) -> Self
fn from(value: HeaderSliceError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderSliceError> for FromSliceError
impl From<HeaderSliceError> for FromSliceError
Source§fn from(value: HeaderSliceError) -> Self
fn from(value: HeaderSliceError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderSliceError> for FromSliceError
impl From<HeaderSliceError> for FromSliceError
Source§fn from(value: HeaderSliceError) -> Self
fn from(value: HeaderSliceError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderSliceError> for FromSliceError
impl From<HeaderSliceError> for FromSliceError
Source§fn from(value: HeaderSliceError) -> Self
fn from(value: HeaderSliceError) -> Self
Converts to this type from the input type.
Source§impl From<HeadersError> for FromSliceError
impl From<HeadersError> for FromSliceError
Source§fn from(value: HeadersError) -> Self
fn from(value: HeadersError) -> Self
Converts to this type from the input type.
Source§impl From<HeadersSliceError> for FromSliceError
impl From<HeadersSliceError> for FromSliceError
Source§fn from(value: HeadersSliceError) -> Self
fn from(value: HeadersSliceError) -> Self
Converts to this type from the input type.
Source§impl From<LenError> for FromSliceError
impl From<LenError> for FromSliceError
Source§impl From<SliceError> for FromSliceError
impl From<SliceError> for FromSliceError
Source§fn from(value: SliceError) -> Self
fn from(value: SliceError) -> Self
Converts to this type from the input type.
Source§impl From<SliceError> for FromSliceError
impl From<SliceError> for FromSliceError
Source§fn from(value: SliceError) -> Self
fn from(value: SliceError) -> Self
Converts to this type from the input type.
Source§impl From<SliceError> for FromSliceError
impl From<SliceError> for FromSliceError
Source§fn from(value: SliceError) -> Self
fn from(value: SliceError) -> Self
Converts to this type from the input type.
Source§impl From<SliceError> for FromSliceError
impl From<SliceError> for FromSliceError
Source§fn from(value: SliceError) -> Self
fn from(value: SliceError) -> Self
Converts to this type from the input type.
Source§impl Hash for FromSliceError
impl Hash for FromSliceError
Source§impl PartialEq for FromSliceError
impl PartialEq for FromSliceError
impl Eq for FromSliceError
impl StructuralPartialEq for FromSliceError
Auto Trait Implementations§
impl Freeze for FromSliceError
impl RefUnwindSafe for FromSliceError
impl Send for FromSliceError
impl Sync for FromSliceError
impl Unpin for FromSliceError
impl UnwindSafe for FromSliceError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more