pub enum Ch34xError {
Transfer(PipeError),
NoInterface,
NoPipe,
InvalidResponse,
InvalidArgument,
}Expand description
CH34x 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 CH34x protocol.
Trait Implementations§
Source§impl Debug for Ch34xError
impl Debug for Ch34xError
Source§impl Display for Ch34xError
impl Display for Ch34xError
Source§impl Error for Ch34xError
impl Error for Ch34xError
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 Error for Ch34xError
Available on crate feature embedded-io only.
impl Error for Ch34xError
Available on crate feature
embedded-io only.Source§impl Format for Ch34xError
impl Format for Ch34xError
Auto Trait Implementations§
impl Forget for Ch34xError
impl Freeze for Ch34xError
impl Move for Ch34xError
impl RefUnwindSafe for Ch34xError
impl Send for Ch34xError
impl Sync for Ch34xError
impl Unpin for Ch34xError
impl UnsafeUnpin for Ch34xError
impl UnwindSafe for Ch34xError
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