Enum json::decoder::DecodeError
[−]
[src]
pub enum DecodeError { EndOfInput, Expected(&'static str), MaxRecursion, IntOverflow, Unexpected(char), UnicodeEscape, Number, BufferOverflow, Message(&'static str), Other(Box<Error + Send + Sync>), }
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
.
Message(&'static str)
Generic error message.
Other(Box<Error + Send + Sync>)
Some other Error
trait impl.
Trait Implementations
impl Debug for DecodeError
[src]
impl Display for DecodeError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more