Enum rust_uart::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 Debug for UartError
[src]

Formats the value using the given formatter. Read more

impl Clone for UartError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq 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 From<Error> for UartError
[src]

Performs the conversion.

impl From<Error> for UartError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for UartError

impl Sync for UartError