Enum novatel_oem6_api::OEMError[][src]

pub enum OEMError {
    GenericError,
    MutexError,
    ResponseMismatch,
    NoResponse,
    ThreadCommError,
    CommandError {
        id: ResponseID,
        description: String,
    },
    UnknownMessage {
        id: u16,
    },
    UartError {
        cause: UartError,
    },
}

Common Error for OEM Actions

Variants

Catch-all error

An issue occurred while attempted to obtain a mutex lock

A response message was received, but the ID doesn't match the command that was sent

A command was sent, but we were unable to get the response

The thread reading messages from the device is no longer working

A response was recieved and indicates an error with the previously sent command

Fields of CommandError

The underlying error

Description of error encountered

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 Display for OEMError
[src]

Formats the value using the given formatter. Read more

impl Debug for OEMError
[src]

Formats the value using the given formatter. Read more

impl Clone for OEMError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for OEMError
[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 OEMError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for OEMError

impl Sync for OEMError