Enum nusb::transfer::TransferError
source · pub enum TransferError {
Cancelled,
Stall,
Disconnected,
Fault,
Unknown,
}
Expand description
Transfer error.
Variants§
Cancelled
Transfer was cancelled.
Stall
Endpoint in a STALL condition.
This is used by the device to signal that an error occurred. For bulk
and interrupt endpoints, the stall condition can be cleared with
Interface::clear_halt
. For control
requests, the stall is automatically cleared when another request is
submitted.
Disconnected
Device disconnected.
Fault
Hardware issue or protocol violation.
Unknown
Unknown or OS-specific error.
Trait Implementations§
source§impl Clone for TransferError
impl Clone for TransferError
source§fn clone(&self) -> TransferError
fn clone(&self) -> TransferError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransferError
impl Debug for TransferError
source§impl Display for TransferError
impl Display for TransferError
source§impl Error for TransferError
impl Error for TransferError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<TransferError> for Error
impl From<TransferError> for Error
source§fn from(value: TransferError) -> Self
fn from(value: TransferError) -> Self
Converts to this type from the input type.
source§impl PartialEq for TransferError
impl PartialEq for TransferError
source§fn eq(&self, other: &TransferError) -> bool
fn eq(&self, other: &TransferError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TransferError
impl Eq for TransferError
impl StructuralPartialEq for TransferError
Auto Trait Implementations§
impl Freeze for TransferError
impl RefUnwindSafe for TransferError
impl Send for TransferError
impl Sync for TransferError
impl Unpin for TransferError
impl UnwindSafe for TransferError
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