Enum etherparse::err::ip::HeadersError
source · pub enum HeadersError {
Ip(HeaderError),
Ipv4Ext(HeaderError),
Ipv6Ext(HeaderError),
}
Expand description
Error when decoding the IP header part of a message.
Variants§
Ip(HeaderError)
Error in the IPv4 or IPv6 header.
Ipv4Ext(HeaderError)
Error in the IPv4 extension headers (only authentication header).
Ipv6Ext(HeaderError)
Error in the IPv6 extension headers.
Trait Implementations§
source§impl Clone for HeadersError
impl Clone for HeadersError
source§fn clone(&self) -> HeadersError
fn clone(&self) -> HeadersError
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 HeadersError
impl Debug for HeadersError
source§impl Display for HeadersError
impl Display for HeadersError
source§impl Error for HeadersError
Available on crate feature std
only.
impl Error for HeadersError
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<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<HeadersError> for ReadError
Available on crate feature std
only.
impl From<HeadersError> for ReadError
Available on crate feature
std
only.source§fn from(value: HeadersError) -> Self
fn from(value: HeadersError) -> Self
Converts to this type from the input type.
source§impl Hash for HeadersError
impl Hash for HeadersError
source§impl PartialEq for HeadersError
impl PartialEq for HeadersError
impl Eq for HeadersError
impl StructuralPartialEq for HeadersError
Auto Trait Implementations§
impl Freeze for HeadersError
impl RefUnwindSafe for HeadersError
impl Send for HeadersError
impl Sync for HeadersError
impl Unpin for HeadersError
impl UnwindSafe for HeadersError
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
)