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 of InvalidMagicNumber
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 of LimitReached
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]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more