#[non_exhaustive]pub enum UsbErrorKind {
Disconnected,
Busy,
PermissionDenied,
NotFound,
Unsupported,
Cancelled,
Timeout,
Stall,
Fault,
InvalidArgument,
Other,
}Expand description
Stable categories for USB failures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disconnected
Busy
PermissionDenied
NotFound
Unsupported
Cancelled
Timeout
Stall
Fault
InvalidArgument
Other
Trait Implementations§
Source§impl Clone for UsbErrorKind
impl Clone for UsbErrorKind
Source§fn clone(&self) -> UsbErrorKind
fn clone(&self) -> UsbErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UsbErrorKind
Source§impl Debug for UsbErrorKind
impl Debug for UsbErrorKind
impl Eq for UsbErrorKind
Source§impl PartialEq for UsbErrorKind
impl PartialEq for UsbErrorKind
impl StructuralPartialEq for UsbErrorKind
Auto Trait Implementations§
impl Freeze for UsbErrorKind
impl RefUnwindSafe for UsbErrorKind
impl Send for UsbErrorKind
impl Sync for UsbErrorKind
impl Unpin for UsbErrorKind
impl UnsafeUnpin for UsbErrorKind
impl UnwindSafe for UsbErrorKind
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