Trait gear_common::storage::DequeueError

source ·
pub trait DequeueError {
    // Required methods
    fn duplicate_key() -> Self;
    fn element_not_found() -> Self;
    fn head_should_be_set() -> Self;
    fn head_should_not_be_set() -> Self;
    fn tail_has_next_key() -> Self;
    fn tail_parent_not_found() -> Self;
    fn tail_should_be_set() -> Self;
    fn tail_should_not_be_set() -> Self;
}
Expand description

Represents dequeue error type.

Contains constructors for all existing errors.

Required Methods§

source

fn duplicate_key() -> Self

Occurs when given key already exists in dequeue.

source

fn element_not_found() -> Self

Occurs when element wasn’t found in storage.

source

fn head_should_be_set() -> Self

Occurs when head should contain value, but it’s empty for some reason.

source

fn head_should_not_be_set() -> Self

Occurs when head should be empty, but it contains value for some reason.

source

fn tail_has_next_key() -> Self

Occurs when tail element of the dequeue contains link to the next element.

source

fn tail_parent_not_found() -> Self

Occurs when while searching pre-tail, element wasn’t found.

source

fn tail_should_be_set() -> Self

Occurs when tail should contain value, but it’s empty for some reason.

source

fn tail_should_not_be_set() -> Self

Occurs when tail should be empty, but it contains value for some reason.

Object Safety§

This trait is not object safe.

Implementors§