pub enum Capacity {
Bounded(usize),
Unbounded(BackPressure),
}Expand description
This decides whether the actor is bounded or unbounded. If it is unbounded, then a BackPressure must be given.
§Default
unbounded, with exponential backoff starting 5 messages in the inbox
at 25 ns, with a growth-factor of 1.3
Variants§
Bounded(usize)
Unbounded(BackPressure)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Capacity
Auto Trait Implementations§
impl Freeze for Capacity
impl RefUnwindSafe for Capacity
impl Send for Capacity
impl Sync for Capacity
impl Unpin for Capacity
impl UnwindSafe for Capacity
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