#[non_exhaustive]pub enum ErrorKind {
Unsupported,
AlreadyOpen,
Disconnected,
Security,
Stall,
Babble,
Transfer,
InvalidAccess,
Other,
}
Expand description
WebUSB error kind.
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.
Unsupported
WebUSB is unsupported by this browser.
AlreadyOpen
The USB device has already been opened.
Disconnected
The USB device has been disconnected.
Security
Access denied.
Stall
The USB device stalled the transfer to indicate an error.
This condition can be reset by calling OpenUsbDevice::clear_halt
.
Babble
The USB device sent too much data.
Transfer
USB transfer failed.
InvalidAccess
Invalid access.
Other
Other error.
Trait Implementationsยง
Sourceยงimpl Ord for ErrorKind
impl Ord for ErrorKind
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 PartialOrd for ErrorKind
impl PartialOrd for ErrorKind
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementationsยง
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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