Enum etherparse::err::ip::HeadersSliceError
source · pub enum HeadersSliceError {
Len(LenError),
Content(HeadersError),
}
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(HeadersError)
Error caused by the contents of the header.
Implementations§
source§impl HeadersSliceError
impl HeadersSliceError
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 HeadersSliceError
impl Clone for HeadersSliceError
source§fn clone(&self) -> HeadersSliceError
fn clone(&self) -> HeadersSliceError
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 HeadersSliceError
impl Debug for HeadersSliceError
source§impl Display for HeadersSliceError
impl Display for HeadersSliceError
source§impl Error for HeadersSliceError
Available on crate feature std
only.
impl Error for HeadersSliceError
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<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<HeadersSliceError> for ReadError
Available on crate feature std
only.
impl From<HeadersSliceError> for ReadError
Available on crate feature
std
only.source§fn from(value: HeadersSliceError) -> Self
fn from(value: HeadersSliceError) -> Self
Converts to this type from the input type.
source§impl Hash for HeadersSliceError
impl Hash for HeadersSliceError
source§impl PartialEq for HeadersSliceError
impl PartialEq for HeadersSliceError
source§fn eq(&self, other: &HeadersSliceError) -> bool
fn eq(&self, other: &HeadersSliceError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HeadersSliceError
impl StructuralPartialEq for HeadersSliceError
Auto Trait Implementations§
impl Freeze for HeadersSliceError
impl RefUnwindSafe for HeadersSliceError
impl Send for HeadersSliceError
impl Sync for HeadersSliceError
impl Unpin for HeadersSliceError
impl UnwindSafe for HeadersSliceError
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