pub struct MailboxConfig {
pub capacity: usize,
pub priority_queue: bool,
pub backpressure_threshold: f32,
}Expand description
Configuration for an actor mailbox.
Fields§
§capacity: usizeMaximum capacity of the mailbox
priority_queue: boolEnable priority queuing
backpressure_threshold: f32Backpressure threshold (percentage of capacity)
Implementations§
Source§impl MailboxConfig
impl MailboxConfig
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 moreSource§impl Debug for MailboxConfig
impl Debug 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