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§
Source§impl Clone for DefragmentationError
impl Clone for DefragmentationError
Source§fn clone(&self) -> DefragmentationError
fn clone(&self) -> DefragmentationError
Returns a duplicate 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 DefragmentationError
impl Debug for DefragmentationError
Source§impl Display for DefragmentationError
impl Display for DefragmentationError
Source§impl Error for DefragmentationError
impl Error for DefragmentationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 Ord for DefragmentationError
impl Ord for DefragmentationError
Source§fn cmp(&self, other: &DefragmentationError) -> Ordering
fn cmp(&self, other: &DefragmentationError) -> 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 DefragmentationError
impl PartialEq for DefragmentationError
Source§impl PartialOrd for DefragmentationError
impl PartialOrd for DefragmentationError
impl Copy for DefragmentationError
impl Eq for DefragmentationError
impl StructuralPartialEq for DefragmentationError
Auto Trait Implementations§
impl Freeze for DefragmentationError
impl RefUnwindSafe for DefragmentationError
impl Send for DefragmentationError
impl Sync for DefragmentationError
impl Unpin for DefragmentationError
impl UnwindSafe for DefragmentationError
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