Struct etherparse::err::ipv4::BadOptionsLen
source · pub struct BadOptionsLen {
pub bad_len: usize,
}
Expand description
Error if a slice can not be used as options data in
crate::Ipv4Options
as then length is non compatible.
The length for options in an IPv4 header
Fields§
§bad_len: usize
Invalid length.
Trait Implementations§
source§impl Clone for BadOptionsLen
impl Clone for BadOptionsLen
source§fn clone(&self) -> BadOptionsLen
fn clone(&self) -> BadOptionsLen
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 BadOptionsLen
impl Debug for BadOptionsLen
source§impl Display for BadOptionsLen
impl Display for BadOptionsLen
source§impl Error for BadOptionsLen
Available on crate feature std
only.
impl Error for BadOptionsLen
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 BadOptionsLen
impl Hash for BadOptionsLen
source§impl PartialEq for BadOptionsLen
impl PartialEq for BadOptionsLen
source§fn eq(&self, other: &BadOptionsLen) -> bool
fn eq(&self, other: &BadOptionsLen) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BadOptionsLen
impl StructuralPartialEq for BadOptionsLen
Auto Trait Implementations§
impl Freeze for BadOptionsLen
impl RefUnwindSafe for BadOptionsLen
impl Send for BadOptionsLen
impl Sync for BadOptionsLen
impl Unpin for BadOptionsLen
impl UnwindSafe for BadOptionsLen
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