Enum mutnet::ipv4::SetTotalLengthError
source · pub enum SetTotalLengthError {
SmallerThanIhl,
LengthExceedsAvailableSpace(LengthExceedsAvailableSpaceError),
CannotCutUpperLayerHeader,
}
Expand description
Error returned by methods manipulating the total length header.
Variants§
SmallerThanIhl
Total length cannot be set to less than the header length specified by the IHL header.
LengthExceedsAvailableSpace(LengthExceedsAvailableSpaceError)
The supplied length exceeds the available space.
CannotCutUpperLayerHeader
The operation would cut parts of an already parsed upper layer.
Trait Implementations§
source§impl Clone for SetTotalLengthError
impl Clone for SetTotalLengthError
source§fn clone(&self) -> SetTotalLengthError
fn clone(&self) -> SetTotalLengthError
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 SetTotalLengthError
impl Debug for SetTotalLengthError
source§impl Display for SetTotalLengthError
impl Display for SetTotalLengthError
source§impl Error for SetTotalLengthError
impl Error for SetTotalLengthError
1.30.0 · 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<LengthExceedsAvailableSpaceError> for SetTotalLengthError
impl From<LengthExceedsAvailableSpaceError> for SetTotalLengthError
source§fn from(value: LengthExceedsAvailableSpaceError) -> Self
fn from(value: LengthExceedsAvailableSpaceError) -> Self
Converts to this type from the input type.
source§impl Hash for SetTotalLengthError
impl Hash for SetTotalLengthError
source§impl Ord for SetTotalLengthError
impl Ord for SetTotalLengthError
source§fn cmp(&self, other: &SetTotalLengthError) -> Ordering
fn cmp(&self, other: &SetTotalLengthError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SetTotalLengthError
impl PartialEq for SetTotalLengthError
source§fn eq(&self, other: &SetTotalLengthError) -> bool
fn eq(&self, other: &SetTotalLengthError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SetTotalLengthError
impl PartialOrd for SetTotalLengthError
source§fn partial_cmp(&self, other: &SetTotalLengthError) -> Option<Ordering>
fn partial_cmp(&self, other: &SetTotalLengthError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SetTotalLengthError
impl Eq for SetTotalLengthError
impl StructuralPartialEq for SetTotalLengthError
Auto Trait Implementations§
impl Freeze for SetTotalLengthError
impl RefUnwindSafe for SetTotalLengthError
impl Send for SetTotalLengthError
impl Sync for SetTotalLengthError
impl Unpin for SetTotalLengthError
impl UnwindSafe for SetTotalLengthError
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