Skip to main content

MailboxFactory

Trait MailboxFactory 

Source
pub trait MailboxFactory: Send + Sync {
    // Required method
    fn create(&self, address: &Address) -> Arc<dyn Mailbox> ⓘ;

    // Provided method
    fn recover(&self) -> Vec<Address> { ... }
}
Expand description

Creates the mailbox of an address.

Required Methods§

Source

fn create(&self, address: &Address) -> Arc<dyn Mailbox> ⓘ

The mailbox of address.

Provided Methods§

Source

fn recover(&self) -> Vec<Address>

The addresses that have stored messages, so that a restarted node delivers them.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§