pub enum FtdiError {
Transfer(PipeError),
NoInterface,
NoPipe,
InvalidResponse,
InvalidArgument,
}Expand description
FTDI 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 FTDI protocol.
Trait Implementations§
Source§impl Error for FtdiError
impl Error for FtdiError
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()
Auto Trait Implementations§
impl Forget for FtdiError
impl Freeze for FtdiError
impl Move for FtdiError
impl RefUnwindSafe for FtdiError
impl Send for FtdiError
impl Sync for FtdiError
impl Unpin for FtdiError
impl UnsafeUnpin for FtdiError
impl UnwindSafe for FtdiError
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