#[repr(C)]
pub enum BrotliDecoderErrorCode {
Show 29 variants BROTLI_DECODER_NO_ERROR = 0, BROTLI_DECODER_SUCCESS = 1, BROTLI_DECODER_NEEDS_MORE_INPUT = 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT = 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE = -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED = -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE = -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET = -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME = -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE = -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE = -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT = -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1 = -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2 = -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM = -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY = -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS = -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1 = -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2 = -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE = -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET = -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS = -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES = -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS = -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP = -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1 = -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2 = -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES = -30, BROTLI_DECODER_ERROR_UNREACHABLE = -31,
}

Variants§

§

BROTLI_DECODER_NO_ERROR = 0

§

BROTLI_DECODER_SUCCESS = 1

§

BROTLI_DECODER_NEEDS_MORE_INPUT = 2

§

BROTLI_DECODER_NEEDS_MORE_OUTPUT = 3

§

BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE = -1

§

BROTLI_DECODER_ERROR_FORMAT_RESERVED = -2

§

BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE = -3

§

BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET = -4

§

BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME = -5

§

BROTLI_DECODER_ERROR_FORMAT_CL_SPACE = -6

§

BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE = -7

§

BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT = -8

§

BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1 = -9

§

BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2 = -10

§

BROTLI_DECODER_ERROR_FORMAT_TRANSFORM = -11

§

BROTLI_DECODER_ERROR_FORMAT_DICTIONARY = -12

§

BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS = -13

§

BROTLI_DECODER_ERROR_FORMAT_PADDING_1 = -14

§

BROTLI_DECODER_ERROR_FORMAT_PADDING_2 = -15

§

BROTLI_DECODER_ERROR_FORMAT_DISTANCE = -16

§

BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET = -19

§

BROTLI_DECODER_ERROR_INVALID_ARGUMENTS = -20

§

BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES = -21

§

BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS = -22

§

BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP = -25

§

BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1 = -26

§

BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2 = -27

§

BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES = -30

§

BROTLI_DECODER_ERROR_UNREACHABLE = -31

Trait Implementations§

source§

impl Clone for BrotliDecoderErrorCode

source§

fn clone(&self) -> BrotliDecoderErrorCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BrotliDecoderErrorCode

source§

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

Formats the value using the given formatter. Read more
source§

impl Copy for BrotliDecoderErrorCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.