pub enum UsbError {
NoDevice,
Failed,
BadRequest,
Host(Error),
}Expand description
Why a transfer did not happen.
Variants§
NoDevice
The host has no device bound for this driver: unplugged, or not enumerated yet.
Failed
The host tried, and the device or the bus did not complete it.
BadRequest
The request was not one the host takes: too long, an endpoint the device does not have, or empty.
Host(Error)
The host itself did not answer, or answered something that was not this protocol.
Implementations§
Trait Implementations§
impl Copy for UsbError
impl Eq for UsbError
impl StructuralPartialEq for UsbError
Auto Trait Implementations§
impl Freeze for UsbError
impl RefUnwindSafe for UsbError
impl Send for UsbError
impl Sync for UsbError
impl Unpin for UsbError
impl UnsafeUnpin for UsbError
impl UnwindSafe for UsbError
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