Enum fourleaf::de::Error []

pub enum Error {
    Stream(StringError),
    RecursionLimitExceeded(String),
    UnknownField(Stringu8u64),
    UnknownVariant(Stringu64),
    FieldOccursTooFewTimes(Stringu64),
    FieldOccursTooManyTimes(Stringu64),
    RequiredFieldMissing(String),
    InvalidValue(StringBox<Error + Send + Sync>),
    InvalidValueMsg(String, &'static str),
    MaxCollectExceeded(String),
    MaxBlobExceeded(String),
    // some variants omitted
}

Errors that can be produced during deserialisation.

Every variant begins with a string indicating the field names and positions that led to the error, including the problematic field itself.

Variants

An error was returned by the underlying Stream.

Deserialisation recursed too deeply.

See Config::recursion_limit to control the cut-off point.

An unknown field was encountered and Config::ignore_unknown_fields was false.

An unknown enum variant was encountered and the enum does not have any way to handle unknown variants.

A field was encountered fewer times than is permitted. This error is flagged at the end of the struct containing the field.

A field was encountered more times than is permitted. This error is flagged at the first occurrence that exceeds the maximum.

A field which is required in a structure was not found by the time the end of the structure was reached. This error is flagged at the end of the structure, but includes the name of the missing field in the location.

A field failed to deserialise because its serialised value is inappropriate for the field type.

Like InvalidValue, but the nested value is simply a string.

The combined size of all variable-length collections being deserialised grew to be larger than the value of Config::max_collect.

The combined size of all blobs being deserialised into new buffers grew to be larger than the value of Config::max_blob.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error

Formats the value using the given formatter. Read more

impl Error for Error

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl<'a> From<Context<&'a Context<'a>, Error>> for Error

Performs the conversion.