Enum etherparse::err::FromSliceError
source · pub enum FromSliceError {
Len(LenError),
LinuxSll(HeaderError),
DoubleVlan(HeaderError),
Ip(HeaderError),
IpAuth(HeaderError),
Ipv4(HeaderError),
Ipv6(HeaderError),
Ipv6Exts(HeaderError),
Tcp(HeaderError),
}
Expand description
Type aggregating 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.
DoubleVlan(HeaderError)
Error while parsing a double vlan 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 double_vlan(&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 copy 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)>
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<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<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
source§fn eq(&self, other: &FromSliceError) -> bool
fn eq(&self, other: &FromSliceError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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