#[non_exhaustive]pub enum UsbError {
WouldBlock,
BufferOverflow,
InvalidEndpoint,
EndpointOverflow,
EndpointMemoryOverflow,
Unsupported,
InvalidState,
ParseError,
}Expand description
Errors returned by USB stack operations.
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.
WouldBlock
An operation would block — no data available or buffer full.
BufferOverflow
A buffer was too small for the data to read, or provided data exceeds length constraints.
InvalidEndpoint
The endpoint address is invalid or was not previously allocated.
EndpointOverflow
All endpoints of the requested type have been allocated.
EndpointMemoryOverflow
The packet buffer memory available to the USB controller has been exhausted.
Unsupported
Operation is not supported by this bus implementation.
InvalidState
Operation is not valid in the current state.
ParseError
A SETUP packet or descriptor could not be parsed.
Trait Implementations§
impl Copy for UsbError
impl Eq for UsbError
impl StructuralPartialEq for UsbError
Auto Trait Implementations§
impl Forget for UsbError
impl Freeze for UsbError
impl Move 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