pub enum Error {
    PathNotFound,
    PathTooLong,
    PathTooShort,
    AtomicUpdateRequired,
    Deserialization(Error),
    SerializationFailed,
    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(Error)

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.

SerializationFailed

The value provided could not be serialized.

Check that the buffer had sufficient space.

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

Converts to this type from the input type.

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.