pub struct MailboxConfig { /* private fields */ }Expand description
Configuration for bounded actor user mailboxes.
Bombay deliberately selects Bombay Communication’s zero-aging mode: every waiting control event precedes every waiting user event. Sustained control traffic may therefore starve user traffic. A second priority protocol or fairness consumer is required before bombay can justify an aging policy.
User events are FIFO in Communication’s admission-ticket order. Clones of one sender have no additional cross-producer ordering contract: concurrent producers may acquire admission tickets in either order, while each producer’s sequential sends retain their order.
The user lane is bounded. Async sends apply backpressure while retaining their event and return that exact event if retirement closes the lane; bombay never silently drops an accepted event.
Implementations§
Source§impl MailboxConfig
impl MailboxConfig
Sourcepub const fn bounded(user_capacity: usize) -> MailboxConfig
pub const fn bounded(user_capacity: usize) -> MailboxConfig
Construct a bounded user input.
Trait Implementations§
Source§impl Clone for MailboxConfig
impl Clone for MailboxConfig
Source§fn clone(&self) -> MailboxConfig
fn clone(&self) -> MailboxConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more