Enum mai400_api::MAIError[][src]

pub enum MAIError {
    GenericError,
    ThreadCommError,
    UnknownMessage {
        id: u16,
    },
    UartError {
        cause: UartError,
    },
}

Common Error for MAI Actions

Variants

Catch-all error

The thread reading messages from the device is no longer working

Received a valid message, but the message ID doesn't match any known message type

Fields of UnknownMessage

ID of message received

An error was thrown by the serial communication driver

Fields of UartError

The underlying error

Trait Implementations

impl Debug for MAIError
[src]

Formats the value using the given formatter. Read more

impl Clone for MAIError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for MAIError
[src]

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

This method tests for !=.

impl From<UartError> for MAIError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for MAIError

impl Sync for MAIError