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

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

Variants

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

Fields of InvalidMagicNumber

The four bytes that were actually read.

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 of LimitReached

The type of structure that we attempted to read.

The number of these structures that we attempted to read.

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

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

A short description of the error. Read more

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