Trait gear_common::storage::MailboxError

source ·
pub trait MailboxError {
    // Required methods
    fn duplicate_key() -> Self;
    fn element_not_found() -> Self;
}
Expand description

Represents mailbox error type.

Contains constructors for all existing errors.

Required Methods§

source

fn duplicate_key() -> Self

Occurs when given value already exists in mailbox.

source

fn element_not_found() -> Self

Occurs when element wasn’t found in storage.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MailboxError for ()

Implementors§