Enum etherparse::err::ip::HeaderError
source · pub enum HeaderError {
UnsupportedIpVersion {
version_number: u8,
},
Ipv4HeaderLengthSmallerThanHeader {
ihl: u8,
},
}
Expand description
Error when decoding the IP header part of a message.
Variants§
UnsupportedIpVersion
Error when the IP header version field is not equal to 4 or 6.
Ipv4HeaderLengthSmallerThanHeader
Error when the ipv4 internet header length is smaller then the header itself (5).
Trait Implementations§
source§impl Clone for HeaderError
impl Clone for HeaderError
source§fn clone(&self) -> HeaderError
fn clone(&self) -> HeaderError
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 HeaderError
impl Debug for HeaderError
source§impl Display for HeaderError
impl Display for HeaderError
source§impl Error for HeaderError
Available on crate feature std
only.
impl Error for HeaderError
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<HeaderError> for FromSliceError
impl From<HeaderError> for FromSliceError
source§fn from(value: HeaderError) -> Self
fn from(value: HeaderError) -> Self
Converts to this type from the input type.
source§impl From<HeaderError> for ReadError
Available on crate feature std
only.
impl From<HeaderError> for ReadError
Available on crate feature
std
only.source§fn from(value: HeaderError) -> Self
fn from(value: HeaderError) -> Self
Converts to this type from the input type.
source§impl Hash for HeaderError
impl Hash for HeaderError
source§impl PartialEq for HeaderError
impl PartialEq for HeaderError
impl Eq for HeaderError
impl StructuralPartialEq for HeaderError
Auto Trait Implementations§
impl Freeze for HeaderError
impl RefUnwindSafe for HeaderError
impl Send for HeaderError
impl Sync for HeaderError
impl Unpin for HeaderError
impl UnwindSafe for HeaderError
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
)