Enum mutnet::tcp::SetDataOffsetError
source · pub enum SetDataOffsetError {
InvalidDataOffset {
data_offset: usize,
},
NotEnoughHeadroom(NotEnoughHeadroomError),
}
Expand description
Error returned by methods manipulating the data offset.
Variants§
InvalidDataOffset
Data offset is not within required bounds (5..=15).
NotEnoughHeadroom(NotEnoughHeadroomError)
Not enough headroom available.
Trait Implementations§
source§impl Clone for SetDataOffsetError
impl Clone for SetDataOffsetError
source§fn clone(&self) -> SetDataOffsetError
fn clone(&self) -> SetDataOffsetError
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 SetDataOffsetError
impl Debug for SetDataOffsetError
source§impl Display for SetDataOffsetError
impl Display for SetDataOffsetError
source§impl Error for SetDataOffsetError
impl Error for SetDataOffsetError
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<NotEnoughHeadroomError> for SetDataOffsetError
impl From<NotEnoughHeadroomError> for SetDataOffsetError
source§fn from(value: NotEnoughHeadroomError) -> Self
fn from(value: NotEnoughHeadroomError) -> Self
Converts to this type from the input type.
source§impl Hash for SetDataOffsetError
impl Hash for SetDataOffsetError
source§impl Ord for SetDataOffsetError
impl Ord for SetDataOffsetError
source§fn cmp(&self, other: &SetDataOffsetError) -> Ordering
fn cmp(&self, other: &SetDataOffsetError) -> 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 SetDataOffsetError
impl PartialEq for SetDataOffsetError
source§fn eq(&self, other: &SetDataOffsetError) -> bool
fn eq(&self, other: &SetDataOffsetError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SetDataOffsetError
impl PartialOrd for SetDataOffsetError
source§fn partial_cmp(&self, other: &SetDataOffsetError) -> Option<Ordering>
fn partial_cmp(&self, other: &SetDataOffsetError) -> 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 SetDataOffsetError
impl Eq for SetDataOffsetError
impl StructuralPartialEq for SetDataOffsetError
Auto Trait Implementations§
impl Freeze for SetDataOffsetError
impl RefUnwindSafe for SetDataOffsetError
impl Send for SetDataOffsetError
impl Sync for SetDataOffsetError
impl Unpin for SetDataOffsetError
impl UnwindSafe for SetDataOffsetError
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