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§
sourcefn duplicate_key() -> Self
fn duplicate_key() -> Self
Occurs when given value already exists in mailbox.
sourcefn element_not_found() -> Self
fn element_not_found() -> Self
Occurs when element wasn’t found in storage.
Object Safety§
This trait is not object safe.