Enum tz::internals::Error [] [src]

pub enum Error {
    InvalidMagicNumber {
        bytes_read: [u8; 4],
    },
    LimitReached {
        structures: Structures,
        intended_count: u32,
        limit: u32,
    },
}

Variants

InvalidMagicNumber

The error when the first four bytes of the buffer weren't what they should be.

Fields

bytes_read: [u8; 4]

The four bytes that were actually read.

LimitReached

The error when too many structures would have been read from the buffer, in order to prevent this library from using too much memory.

Fields

structures: Structures

The type of structure that we attempted to read.

intended_count: u32

The number of these structures that we attempted to read.

limit: u32

The maximum number of structures that we can get away with.

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

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