#[non_exhaustive]pub enum PipeError {
BufferOverflow,
BadResponse,
Babble,
DataToggleError,
Canceled,
Stall,
Timeout,
Disconnected,
}Expand description
Errors returned by UsbPipe 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.
BufferOverflow
The packet is too long to fit in the buffer.
BadResponse
CRC or other hardware-level framing error.
Babble
The device sent more data than expected (babble).
DataToggleError
Data toggle sequence mismatch detected.
Canceled
Transaction was canceled
Stall
The device endpoint is stalled.
Timeout
Device did not respond in time
Disconnected
Device disconnected
Trait Implementations§
impl Copy for PipeError
impl Eq for PipeError
impl StructuralPartialEq for PipeError
Auto Trait Implementations§
impl Freeze for PipeError
impl RefUnwindSafe for PipeError
impl Send for PipeError
impl Sync for PipeError
impl Unpin for PipeError
impl UnwindSafe for PipeError
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