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

ApplicationError

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

ExpectedField

A field was expected, but none was found.

UnknownField

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

ExpectedType

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

ExpectedMapKey

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

ExpectedMapElement

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

NoEnumVariants

An enum decoding was requested, but no variants were supplied

NilTooLong

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

SyntaxError

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

CustomError

A custom error was generated when decoding.

EndOfStream

The end of the TOML input was reached too soon

InvalidType

Produced by serde ...

Trait Implementations

Derived Implementations

impl Debug for DecodeErrorKind

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

impl PartialEq for DecodeErrorKind

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

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