pub enum DefragmentationError {
InvalidChannel {
expected: Channel,
actual: Channel,
},
InvalidPacketType {
expected: PacketType,
actual: PacketType,
},
InvalidSequence {
expected: u8,
actual: u8,
},
}
Expand description
An error that occured while assembling a CTAPHID message from packets.
Variants
InvalidChannel
The packet has an invalid channel.
InvalidPacketType
The packet has an invalid type.
InvalidSequence
The packet has an invalid sequence.
Trait Implementations
sourceimpl Clone for DefragmentationError
impl Clone for DefragmentationError
sourcefn clone(&self) -> DefragmentationError
fn clone(&self) -> DefragmentationError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DefragmentationError
impl Debug for DefragmentationError
sourceimpl Display for DefragmentationError
impl Display for DefragmentationError
sourceimpl Error for DefragmentationError
impl Error for DefragmentationError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl Ord for DefragmentationError
impl Ord for DefragmentationError
sourcefn cmp(&self, other: &DefragmentationError) -> Ordering
fn cmp(&self, other: &DefragmentationError) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<DefragmentationError> for DefragmentationError
impl PartialEq<DefragmentationError> for DefragmentationError
sourcefn eq(&self, other: &DefragmentationError) -> bool
fn eq(&self, other: &DefragmentationError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DefragmentationError) -> bool
fn ne(&self, other: &DefragmentationError) -> bool
This method tests for !=
.
sourceimpl PartialOrd<DefragmentationError> for DefragmentationError
impl PartialOrd<DefragmentationError> for DefragmentationError
sourcefn partial_cmp(&self, other: &DefragmentationError) -> Option<Ordering>
fn partial_cmp(&self, other: &DefragmentationError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for DefragmentationError
impl Eq for DefragmentationError
impl StructuralEq for DefragmentationError
impl StructuralPartialEq for DefragmentationError
Auto Trait Implementations
impl RefUnwindSafe for DefragmentationError
impl Send for DefragmentationError
impl Sync for DefragmentationError
impl Unpin for DefragmentationError
impl UnwindSafe for DefragmentationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more