pub struct MailboxConfig { /* private fields */ }Expand description
Memory + overflow contract for every mailbox spawned by a crate::Runtime.
Fields are private so an invalid u32 cannot sneak in as capacity.
Construct with MailboxConfig::new or MailboxConfig::DEFAULT.
Implementations§
Source§impl MailboxConfig
impl MailboxConfig
Sourcepub const DEFAULT: MailboxConfig
pub const DEFAULT: MailboxConfig
Compile-time-valid default: 256 hops, reject on overflow.
pub const fn new(capacity: MailboxCapacity, overflow: OverflowPolicy) -> Self
pub const fn capacity(&self) -> MailboxCapacity
pub const fn overflow(&self) -> OverflowPolicy
Trait Implementations§
Source§impl Clone for MailboxConfig
impl Clone for MailboxConfig
Source§fn clone(&self) -> MailboxConfig
fn clone(&self) -> MailboxConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MailboxConfig
Source§impl Debug for MailboxConfig
impl Debug for MailboxConfig
Source§impl Default for MailboxConfig
impl Default for MailboxConfig
impl Eq for MailboxConfig
Source§impl PartialEq for MailboxConfig
impl PartialEq for MailboxConfig
impl StructuralPartialEq for MailboxConfig
Auto Trait Implementations§
impl Freeze for MailboxConfig
impl RefUnwindSafe for MailboxConfig
impl Send for MailboxConfig
impl Sync for MailboxConfig
impl Unpin for MailboxConfig
impl UnsafeUnpin for MailboxConfig
impl UnwindSafe for MailboxConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more