#[repr(u32)]pub enum UsbError {
Show 40 variants
CRC = 10_001,
BTStuff = 10_002,
DataToggleMismatch = 10_003,
StallPid = 10_004,
DevNotResponding = 10_005,
PidCheckFailure = 10_006,
UnexpectedPid = 10_007,
DataOverrun = 10_008,
DataUnderrun = 10_009,
BufferOverrun = 10_012,
BufferUnderrun = 10_013,
NotAccessed = 10_015,
Fifo = 10_016,
EndpointHalted = 10_048,
NoMemory = 10_256,
InvalidUrbFunction = 10_257,
InvalidParameter = 10_258,
ErrorBusy = 10_259,
RequestFailed = 10_260,
InvalidPipeHandle = 10_261,
NoBandwidth = 10_262,
InternalHcError = 10_263,
ErrorShortTransfer = 10_264,
BadStartFrame = 10_265,
IsochRequestFailed = 10_266,
FrameControlOwned = 10_267,
FrameControlNotOwned = 10_268,
Canceled = 10_512,
Canceling = 10_513,
AlreadyConfigured = 10_514,
Unconfigured = 10_515,
NoSuchDevice = 10_516,
DeviceNotFound = 10_517,
NotSupported = 10_518,
IoPending = 10_519,
IoTimeout = 10_520,
DeviceRemoved = 10_521,
PipeNotLinked = 10_522,
ConnectedPipes = 10_523,
DeviceLocked = 10_524,
}
Expand description
Represents USB error codes.
Variants§
CRC = 10_001
BTStuff = 10_002
DataToggleMismatch = 10_003
StallPid = 10_004
DevNotResponding = 10_005
PidCheckFailure = 10_006
UnexpectedPid = 10_007
DataOverrun = 10_008
DataUnderrun = 10_009
BufferOverrun = 10_012
BufferUnderrun = 10_013
NotAccessed = 10_015
Fifo = 10_016
EndpointHalted = 10_048
NoMemory = 10_256
InvalidUrbFunction = 10_257
InvalidParameter = 10_258
ErrorBusy = 10_259
RequestFailed = 10_260
InvalidPipeHandle = 10_261
NoBandwidth = 10_262
InternalHcError = 10_263
ErrorShortTransfer = 10_264
BadStartFrame = 10_265
IsochRequestFailed = 10_266
FrameControlOwned = 10_267
FrameControlNotOwned = 10_268
Canceled = 10_512
Canceling = 10_513
AlreadyConfigured = 10_514
Unconfigured = 10_515
NoSuchDevice = 10_516
DeviceNotFound = 10_517
NotSupported = 10_518
IoPending = 10_519
IoTimeout = 10_520
DeviceRemoved = 10_521
PipeNotLinked = 10_522
ConnectedPipes = 10_523
DeviceLocked = 10_524
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UsbError
impl<'de> Deserialize<'de> for UsbError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy 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 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