Enum elatec_twn4_simple::Error[][src]

pub enum Error {
    BadResponse(usize),
    BufferFull,
    BufferTooSmall(usize),
    Read,
    Write,
    StillAsleep,
    Other,
    Unimplemented,
    Reader(ReaderError),
    Hex(Error),
}

Exceptions occurring during reader operations

Variants

The reader issued a response that could not be processed as expected

The provided buffer was filled but more data awaits

The supplied buffer is too small - the inner value is the required size

A read of the serial port failed

TODO make this properly bubble up ::Error somehow

A write to the serial port failed

The reader is still asleep and no bytes were waiting

An unspecified error occurred

The requested function is unimplemented

Communication with the reader succeeded, but the reader returned an error

An attempt to manipulate hex bytes failed

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

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

Convert an nb::Error into an Error

Auto Trait Implementations

impl Send for Error

impl Sync for Error