pub struct UnrecognizedOptionTypeError {
pub option_type: u8,
}
Expand description
Error returned by OptionType::try_from()
.
Fields§
§option_type: u8
The unrecognized option type value.
Trait Implementations§
source§impl Clone for UnrecognizedOptionTypeError
impl Clone for UnrecognizedOptionTypeError
source§fn clone(&self) -> UnrecognizedOptionTypeError
fn clone(&self) -> UnrecognizedOptionTypeError
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 UnrecognizedOptionTypeError
impl Debug for UnrecognizedOptionTypeError
source§impl Error for UnrecognizedOptionTypeError
impl Error for UnrecognizedOptionTypeError
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 Hash for UnrecognizedOptionTypeError
impl Hash for UnrecognizedOptionTypeError
source§impl Ord for UnrecognizedOptionTypeError
impl Ord for UnrecognizedOptionTypeError
source§fn cmp(&self, other: &UnrecognizedOptionTypeError) -> Ordering
fn cmp(&self, other: &UnrecognizedOptionTypeError) -> 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 UnrecognizedOptionTypeError
impl PartialEq for UnrecognizedOptionTypeError
source§fn eq(&self, other: &UnrecognizedOptionTypeError) -> bool
fn eq(&self, other: &UnrecognizedOptionTypeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UnrecognizedOptionTypeError
impl PartialOrd for UnrecognizedOptionTypeError
source§fn partial_cmp(&self, other: &UnrecognizedOptionTypeError) -> Option<Ordering>
fn partial_cmp(&self, other: &UnrecognizedOptionTypeError) -> 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 UnrecognizedOptionTypeError
impl Eq for UnrecognizedOptionTypeError
impl StructuralPartialEq for UnrecognizedOptionTypeError
Auto Trait Implementations§
impl Freeze for UnrecognizedOptionTypeError
impl RefUnwindSafe for UnrecognizedOptionTypeError
impl Send for UnrecognizedOptionTypeError
impl Sync for UnrecognizedOptionTypeError
impl Unpin for UnrecognizedOptionTypeError
impl UnwindSafe for UnrecognizedOptionTypeError
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