Enum etherparse::err::ipv6::SliceError
source · pub enum SliceError {
Len(LenError),
Header(HeaderError),
Exts(HeaderError),
}
Expand description
Errors that can occur when slicing the IPv6 part of a packet.
Variants§
Len(LenError)
Length related errors (e.g. not enough data in slice).
Header(HeaderError)
Error while slicing the header.
Exts(HeaderError)
Error while slicing an ipv6 extension 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)>
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<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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)