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
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more