Enum miniconf::Error[][src]

pub enum Error {
    PathNotFound,
    PathTooLong,
    PathTooShort,
    AtomicUpdateRequired,
    Deserialization(Error),
    BadIndex,
}
Expand description

Errors that occur during settings configuration

Variants

PathNotFound

The provided path wasn’t found in the structure.

Double check the provided path to verify that it’s valid.

PathTooLong

The provided path was valid, but there was trailing data at the end.

Check the end of the path and remove any excess characters.

PathTooShort

The provided path was valid, but did not specify a value fully.

Double check the ending and add the remainder of the path.

AtomicUpdateRequired

The path provided refers to a member of a configurable structure, but the structure must be updated all at once.

Refactor the request to configure the surrounding structure at once.

Deserialization

The value provided for configuration could not be deserialized into the proper type.

Check that the serialized data is valid JSON and of the correct type.

Tuple Fields of Deserialization

0: Error
BadIndex

When indexing into an array, the index provided was out of bounds.

Check array indices to ensure that bounds for all paths are respected.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.