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

An unexpected empty buffer

An unexpected full buffer

An unexpected closed buffer

An unexpected failed conversion

An unexpected bit overflow

Fields of BitOverflow

The number of bits given

The number of bits expected

Another error containing a message

Fields of OtherError

A message describing the error, unknown error if none is specified

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more