pub enum Cp210xError {
Transfer(PipeError),
NoInterface,
NoPipe,
InvalidResponse,
InvalidArgument,
}Expand description
CP210x host driver error.
Variants§
Transfer(PipeError)
Transfer error.
NoInterface
No vendor-class interface at interface_idx with a bulk IN/OUT pair.
NoPipe
Failed to allocate a pipe.
InvalidResponse
Device response had an unexpected length or out-of-range field.
InvalidArgument
Argument was out of range for the CP210x protocol.
Trait Implementations§
Source§impl Debug for Cp210xError
impl Debug for Cp210xError
Source§impl Display for Cp210xError
impl Display for Cp210xError
Source§impl Error for Cp210xError
impl Error for Cp210xError
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 Format for Cp210xError
impl Format for Cp210xError
Auto Trait Implementations§
impl Freeze for Cp210xError
impl RefUnwindSafe for Cp210xError
impl Send for Cp210xError
impl Sync for Cp210xError
impl Unpin for Cp210xError
impl UnwindSafe for Cp210xError
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