Enum etherparse::err::ip::LaxHeaderSliceError
source · pub enum LaxHeaderSliceError {
Len(LenError),
Content(HeaderError),
}
Expand description
Error when decoding an IP header from a slice.
Variants§
Len(LenError)
Error when an length error is encountered (e.g. unexpected end of slice).
Content(HeaderError)
Error caused by the contents of the header.
Implementations§
source§impl LaxHeaderSliceError
impl LaxHeaderSliceError
sourcepub const fn add_slice_offset(self, offset: usize) -> Self
pub const fn add_slice_offset(self, offset: usize) -> Self
Adds an offset value to all slice length related fields.
Trait Implementations§
source§impl Clone for LaxHeaderSliceError
impl Clone for LaxHeaderSliceError
source§fn clone(&self) -> LaxHeaderSliceError
fn clone(&self) -> LaxHeaderSliceError
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 LaxHeaderSliceError
impl Debug for LaxHeaderSliceError
source§impl Display for LaxHeaderSliceError
impl Display for LaxHeaderSliceError
source§impl Error for LaxHeaderSliceError
Available on crate feature std
only.
impl Error for LaxHeaderSliceError
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 Hash for LaxHeaderSliceError
impl Hash for LaxHeaderSliceError
source§impl PartialEq for LaxHeaderSliceError
impl PartialEq for LaxHeaderSliceError
source§fn eq(&self, other: &LaxHeaderSliceError) -> bool
fn eq(&self, other: &LaxHeaderSliceError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LaxHeaderSliceError
impl StructuralPartialEq for LaxHeaderSliceError
Auto Trait Implementations§
impl Freeze for LaxHeaderSliceError
impl RefUnwindSafe for LaxHeaderSliceError
impl Send for LaxHeaderSliceError
impl Sync for LaxHeaderSliceError
impl Unpin for LaxHeaderSliceError
impl UnwindSafe for LaxHeaderSliceError
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