pub enum TransferError {
TimedOut,
Stall,
Disconnected,
Cancelled,
Other(String),
}Expand description
Low-level USB transfer failure (maps into UsbSerialError).
Variants§
Trait Implementations§
Source§impl Clone for TransferError
impl Clone for TransferError
Source§fn clone(&self) -> TransferError
fn clone(&self) -> TransferError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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
impl Eq for TransferError
Source§impl From<TransferError> for UsbSerialError
impl From<TransferError> for UsbSerialError
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
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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