Enum bit_manager::Error
[−]
[src]
pub enum Error { BufferEmpty, BufferFull, BufferClosed, ConversionFailed, BitOverflow { bits: u8, expected: u8, }, OtherError { message: Option<String>, }, }
An enum for possible errors when reading and writing bits
Variants
BufferEmpty
An unexpected empty buffer
BufferFull
An unexpected full buffer
BufferClosed
An unexpected closed buffer
ConversionFailed
An unexpected failed conversion
BitOverflow
An unexpected bit overflow
Fields of BitOverflow
bits: u8 | The number of bits given |
expected: u8 | The number of bits expected |
OtherError
Another error containing a message
Fields of OtherError
message: Option<String> | A message describing the error, unknown error if none is specified |
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more