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
GenericError
Catch-all error case
PortBusy
A read/write call was made while another call was already in-progress
IoError
An I/O error was thrown by the kernel
Fields of IoError
cause: ErrorKind | The underlying error type |
description: String | Error description |
SerialError
An error was thrown by the serial driver
Fields of SerialError
cause: ErrorKind | The underlying error type |
description: String | Error description |
Trait Implementations
impl Debug for UartError
[src]
impl Debug for UartError
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 UartError
[src]
impl Clone for UartError
fn clone(&self) -> UartError
[src]
fn clone(&self) -> UartError
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 UartError
[src]
impl PartialEq for UartError
fn eq(&self, other: &UartError) -> bool
[src]
fn eq(&self, other: &UartError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UartError) -> bool
[src]
fn ne(&self, other: &UartError) -> bool
This method tests for !=
.
impl From<Error> for UartError
[src]
impl From<Error> for UartError
impl From<Error> for UartError
[src]
impl From<Error> for UartError