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
BadResponse(usize)
The reader issued a response that could not be processed as expected
BufferFull
The provided buffer was filled but more data awaits
BufferTooSmall(usize)
The supplied buffer is too small - the inner value is the required size
Read
A read of the serial port failed
TODO make this properly bubble up
Write
A write to the serial port failed
StillAsleep
The reader is still asleep and no bytes were waiting
Other
An unspecified error occurred
Unimplemented
The requested function is unimplemented
Reader(ReaderError)
Communication with the reader succeeded, but the reader returned an error
Hex(Error)
An attempt to manipulate hex bytes failed
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
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 From<Error<Error>> for Error
[src]
impl From<Error<Error>> for Error