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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".