Enum mutnet::udp::SetLengthError
source · pub enum SetLengthError {
LengthExceedsAvailableSpace(LengthExceedsAvailableSpaceError),
LengthTooSmall {
length: usize,
},
}
Expand description
Error returned by methods manipulating the length header.
Variants§
LengthExceedsAvailableSpace(LengthExceedsAvailableSpaceError)
The supplied length exceeds the available space.
LengthTooSmall
Supplied length is smaller than the required 8 bytes.
Trait Implementations§
source§impl Clone for SetLengthError
impl Clone for SetLengthError
source§fn clone(&self) -> SetLengthError
fn clone(&self) -> SetLengthError
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 SetLengthError
impl Debug for SetLengthError
source§impl Display for SetLengthError
impl Display for SetLengthError
source§impl Error for SetLengthError
impl Error for SetLengthError
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 SetLengthError
impl From<LengthExceedsAvailableSpaceError> for SetLengthError
source§fn from(value: LengthExceedsAvailableSpaceError) -> Self
fn from(value: LengthExceedsAvailableSpaceError) -> Self
Converts to this type from the input type.
source§impl Hash for SetLengthError
impl Hash for SetLengthError
source§impl Ord for SetLengthError
impl Ord for SetLengthError
source§fn cmp(&self, other: &SetLengthError) -> Ordering
fn cmp(&self, other: &SetLengthError) -> 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 SetLengthError
impl PartialEq for SetLengthError
source§fn eq(&self, other: &SetLengthError) -> bool
fn eq(&self, other: &SetLengthError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SetLengthError
impl PartialOrd for SetLengthError
source§fn partial_cmp(&self, other: &SetLengthError) -> Option<Ordering>
fn partial_cmp(&self, other: &SetLengthError) -> 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 SetLengthError
impl Eq for SetLengthError
impl StructuralPartialEq for SetLengthError
Auto Trait Implementations§
impl Freeze for SetLengthError
impl RefUnwindSafe for SetLengthError
impl Send for SetLengthError
impl Sync for SetLengthError
impl Unpin for SetLengthError
impl UnwindSafe for SetLengthError
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