pub enum TMCError {
Rusb(Error),
Class(ClassError),
FromUtf8Error(FromUtf8Error),
}Variants§
Rusb(Error)
An error occurred in a generic USB operation
Class(ClassError)
An error occurred in the handling of a USB TMC class operation
FromUtf8Error(FromUtf8Error)
The application requested a string response, but the data from the device was not valid UTF-8
Trait Implementations§
Source§impl Error for TMCError
impl Error for TMCError
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<ClassError> for TMCError
impl From<ClassError> for TMCError
Source§fn from(item: ClassError) -> Self
fn from(item: ClassError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for TMCError
impl From<FromUtf8Error> for TMCError
Source§fn from(item: FromUtf8Error) -> Self
fn from(item: FromUtf8Error) -> Self
Converts to this type from the input type.
impl Eq for TMCError
impl StructuralPartialEq for TMCError
Auto Trait Implementations§
impl Freeze for TMCError
impl RefUnwindSafe for TMCError
impl Send for TMCError
impl Sync for TMCError
impl Unpin for TMCError
impl UnwindSafe for TMCError
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