pub enum UsbSerialError {
Unsupported(String),
Io(String),
TimedOut,
Disconnected,
Cancelled,
ProbeFailed(String),
}Expand description
High-level driver / transport failure.
Variants§
Unsupported(String)
Operation or chip feature not supported.
Io(String)
I/O or USB transfer failure (including stall mapped to a message).
TimedOut
Transfer timed out.
Disconnected
Device unplugged or USB link lost (bulk IN detach / EPROTO, etc.).
Cancelled
Transfer cancelled by the host.
ProbeFailed(String)
Could not identify / open a suitable driver.
Trait Implementations§
Source§impl Clone for UsbSerialError
impl Clone for UsbSerialError
Source§fn clone(&self) -> UsbSerialError
fn clone(&self) -> UsbSerialError
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 UsbSerialError
impl Debug for UsbSerialError
Source§impl Display for UsbSerialError
impl Display for UsbSerialError
impl Eq for UsbSerialError
Source§impl Error for UsbSerialError
impl Error for UsbSerialError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 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 UsbSerialError
impl PartialEq for UsbSerialError
Source§fn eq(&self, other: &UsbSerialError) -> bool
fn eq(&self, other: &UsbSerialError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UsbSerialError
Auto Trait Implementations§
impl Freeze for UsbSerialError
impl RefUnwindSafe for UsbSerialError
impl Send for UsbSerialError
impl Sync for UsbSerialError
impl Unpin for UsbSerialError
impl UnsafeUnpin for UsbSerialError
impl UnwindSafe for UsbSerialError
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