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
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 Display for UartError
[src]
impl Display for UartError
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Error> for UartError
[src]
impl From<Error> for UartError
impl From<Error> for UartError
[src]
impl From<Error> for UartError
impl PartialEq<UartError> for UartError
[src]
impl PartialEq<UartError> 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 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)
Performs copy-assignment from source
. Read more
impl Debug for UartError
[src]
impl Debug for UartError
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Fail for UartError
[src]
impl Fail for UartError
fn cause(&self) -> Option<&(Fail + 'static)>
[src]
fn cause(&self) -> Option<&(Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
fn compat(self) -> Compat<Self>
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
ⓘImportant traits for Causes<'f>fn causes(&self) -> Causes
fn causes(&self) -> Causes
Returns a iterator over the causes of this Fail
with itself as the first item and the root_cause
as the final item. Read more
fn root_cause(&self) -> &(Fail + 'static)
fn root_cause(&self) -> &(Fail + 'static)
Returns the "root cause" of this Fail
- the last value in the cause chain which does not return an underlying cause
. Read more
impl From<UartError> for OEMError
[src]
impl From<UartError> for OEMError