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.

The interface had an error.

The TMCL module reported an error.

Trait Implementations

impl<T: Debug> Debug for Error<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for Error<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Clone> Clone for Error<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Error<T>
[src]

impl<T> From<ErrStatus> for Error<T>
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for Error<T> where
    T: Send

impl<T> Sync for Error<T> where
    T: Sync