Enum mai400_api::MAIError [−][src]
pub enum MAIError { GenericError, ThreadCommError, UnknownMessage { id: u16, }, UartError { cause: UartError, }, }
Common Error for MAI Actions
Variants
GenericError
Catch-all error
ThreadCommError
The thread reading messages from the device is no longer working
UnknownMessage
Received a valid message, but the message ID doesn't match any known message type
Fields of UnknownMessage
id: u16 | ID of message received |
UartError
An error was thrown by the serial communication driver
Fields of UartError
cause: UartError | The underlying error |
Trait Implementations
impl Debug for MAIError
[src]
impl Debug for MAIError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MAIError
[src]
impl Clone for MAIError
fn clone(&self) -> MAIError
[src]
fn clone(&self) -> MAIError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for MAIError
[src]
impl PartialEq for MAIError
fn eq(&self, other: &MAIError) -> bool
[src]
fn eq(&self, other: &MAIError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MAIError) -> bool
[src]
fn ne(&self, other: &MAIError) -> bool
This method tests for !=
.
impl From<UartError> for MAIError
[src]
impl From<UartError> for MAIError