Enum toml::DecodeErrorKind [] [src]

pub enum DecodeErrorKind {
    ApplicationError(String),
    ExpectedField(Option<&'static str>),
    UnknownField,
    ExpectedType(&'static str, &'static str),
    ExpectedMapKey(usize),
    ExpectedMapElement(usize),
    NoEnumVariants,
    NilTooLong,
    SyntaxError,
    CustomError(String),
    EndOfStream,
    InvalidType(&'static str),
}

Enumeration of possible errors which can occur while decoding a structure.

Variants

An error flagged by the application, e.g. value out of range

A field was expected, but none was found.

A field was found, but it was not an expected one.

A field was found, but it had the wrong type.

The nth map key was expected, but none was found.

The nth map element was expected, but none was found.

An enum decoding was requested, but no variants were supplied

The unit type was being decoded, but a non-zero length string was found

There was an error with the syntactical structure of the TOML.

A custom error was generated when decoding.

The end of the TOML input was reached too soon

Produced by serde ...

Trait Implementations

impl PartialEq for DecodeErrorKind
[src]

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

This method tests for !=.

impl Debug for DecodeErrorKind
[src]

Formats the value using the given formatter.