#[repr(u8)]
pub enum StateError {
    SubtreeLocked,
    EntryNotFound,
    IteratorNotFound,
    ParameterNotFound,
    SizeTooLarge,
    IteratorLimitForPrefixExceeded,
    IteratorAlreadyDeleted,
    SubtreeWithPrefixNotFound,
}
Expand description

The error type which is returned by methods on HasStateApi.

Variants

SubtreeLocked

The subtree is locked.

EntryNotFound

The entry does not exist.

IteratorNotFound

The iterator does not exist.

ParameterNotFound

The parameter does not exist.

SizeTooLarge

The specified size is too big.

IteratorLimitForPrefixExceeded

The iterator limit for a prefix has been reached.

IteratorAlreadyDeleted

The iterator has already been deleted.

SubtreeWithPrefixNotFound

No nodes exist with the given prefix.

Trait Implementations

Formats the value using the given formatter. Read more

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.