Enum hpack::decoder::IntegerDecodingError [] [src]

pub enum IntegerDecodingError {
    TooManyOctets,
    ValueTooLarge,
    NotEnoughOctets,
    InvalidPrefix,
}

Represents all errors that can be encountered while decoding an integer.

Variants

5.1. specifies that "excessively large integer decodings" MUST be considered an error (whether the size is the number of octets or value). This variant corresponds to the encoding containing too many octets.

The variant corresponds to the case where the value of the integer being decoded exceeds a certain threshold.

When a buffer from which an integer was supposed to be encoded does not contain enough octets to complete the decoding.

Only valid prefixes are [1, 8]

Trait Implementations

impl PartialEq for IntegerDecodingError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Copy for IntegerDecodingError
[src]

impl Clone for IntegerDecodingError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for IntegerDecodingError
[src]

Formats the value using the given formatter.