Enum json::decoder::DecodeError [] [src]

pub enum DecodeError {
    EndOfInput,
    Expected(&'static str),
    MaxRecursion,
    IntOverflow,
    Unexpected(char),
    UnicodeEscape,
    Number,
    BufferOverflow,
}

Variants

EndOfInput

The underlying iterator stopped giving us new values.

Expected(&'static str)

An expectation was not met while decoding.

MaxRecursion

During generic JSON decoding too many nesting levels had been encountered. See Config for details.

IntOverflow

When decoding integer values, the actual JSON digits exceeded the possible value range.

Unexpected(char)

An unexpected character was encountered.

UnicodeEscape

An invalid unicode escape sequence was found when decoding a JSON string.

Number

Decoding a numeric value failed.

BufferOverflow

A JSON string did not fit into the provided Utf8Buffer.

Trait Implementations

impl Eq for DecodeError
[src]

impl PartialEq for DecodeError
[src]

fn eq(&self, __arg_0: &DecodeError) -> bool

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

fn ne(&self, __arg_0: &DecodeError) -> bool

This method tests for !=.

impl Debug for DecodeError
[src]

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

Formats the value using the given formatter.

impl Clone for DecodeError
[src]

fn clone(&self) -> DecodeError

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Display for DecodeError
[src]

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

Formats the value using the given formatter.

impl Error for DecodeError
[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