Enum tmcl::Error
[−]
[src]
pub enum Error<T> { InterfaceUnavailable, InterfaceError(T), ProtocolError(ErrStatus), }
All possible errors when communicating with
Variants
This means that the library was not able to get the mutable reference to the interface.
This can be cause by many different things
- If
RefCell
is used then the interface might be used by a different stepper motor. - If
Mutex
is used a thread may have panicked and the mutex is poisoned.
InterfaceError(T)
The interface had an error.
ProtocolError(ErrStatus)
The TMCL
module reported an error.
Trait Implementations
impl<T: Debug> Debug for Error<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for Error<T>
[src]
fn eq(&self, __arg_0: &Error<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error<T>) -> bool
[src]
This method tests for !=
.
impl<T: Clone> Clone for Error<T>
[src]
fn clone(&self) -> Error<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more