Enum etherparse::err::packet::SliceError
source · pub enum SliceError {
Len(LenError),
Ip(HeaderError),
Ipv4(HeaderError),
Ipv6(HeaderError),
Ipv4Exts(HeaderError),
Ipv6Exts(HeaderError),
Tcp(HeaderError),
}
Expand description
Error when slicing an packet from downwards (both starting from ethernet or ip layer downwards).
Variants§
Len(LenError)
Length related errors (e.g. not enough data in slice).
Ip(HeaderError)
Error when decoding starting at an IP header (v4 or v6).
Ipv4(HeaderError)
Error when decoding an IPv4 header.
Ipv6(HeaderError)
Error when decoding an IPv6 header.
Ipv4Exts(HeaderError)
Error when decoding an IPv4 extension header.
Ipv6Exts(HeaderError)
Error when decoding an IPv6 extension header.
Tcp(HeaderError)
Error when decoding a TCP header.
Trait Implementations§
source§impl Clone for SliceError
impl Clone for SliceError
source§fn clone(&self) -> SliceError
fn clone(&self) -> SliceError
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 SliceError
impl Debug for SliceError
source§impl Display for SliceError
impl Display for SliceError
source§impl Error for SliceError
Available on crate feature std
only.
impl Error for SliceError
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<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 ReadError
Available on crate feature std
only.
impl From<SliceError> for ReadError
Available on crate feature
std
only.source§fn from(value: SliceError) -> Self
fn from(value: SliceError) -> Self
Converts to this type from the input type.
source§impl Hash for SliceError
impl Hash for SliceError
source§impl PartialEq for SliceError
impl PartialEq for SliceError
source§fn eq(&self, other: &SliceError) -> bool
fn eq(&self, other: &SliceError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SliceError
impl StructuralPartialEq for SliceError
Auto Trait Implementations§
impl Freeze for SliceError
impl RefUnwindSafe for SliceError
impl Send for SliceError
impl Sync for SliceError
impl Unpin for SliceError
impl UnwindSafe for SliceError
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