Enum novatel_oem6_api::UartError[][src]

pub enum UartError {
    GenericError,
    PortBusy,
    IoError {
        cause: ErrorKind,
        description: String,
    },
    SerialError {
        cause: ErrorKind,
        description: String,
    },
}
[]

Custom errors for UART actions

Variants

[]

Catch-all error case

[]

A read/write call was made while another call was already in-progress

[]

An I/O error was thrown by the kernel

[]

Fields of IoError

The underlying error type

Error description

[]

An error was thrown by the serial driver

[]

Fields of SerialError

The underlying error type

Error description

Trait Implementations

impl Fail for UartError
[src]
[+]

[]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

[]

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

[]

Provides context for this failure. Read more

[]

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

impl From<Error> for UartError
[src]
[+]

[]

Performs the conversion.

impl From<Error> for UartError
[src]
[+]

[]

Performs the conversion.

impl Display for UartError
[src]
[+]

[]

Formats the value using the given formatter. Read more

impl PartialEq<UartError> for UartError
[src]
[+]

[]

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

[]

This method tests for !=.

impl Clone for UartError
[src]
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl Debug for UartError
[src]
[+]

[]

Formats the value using the given formatter. Read more

impl From<UartError> for OEMError
[src]
[+]

[]

Performs the conversion.

Auto Trait Implementations

impl Send for UartError

impl Sync for UartError