Enum tiny_actor::config::Capacity
source · [−]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
sourceimpl Capacity
impl Capacity
sourcepub fn is_bounded(&self) -> bool
pub fn is_bounded(&self) -> bool
Whether the capacity is bounded.
Trait Implementations
impl StructuralPartialEq for Capacity
Auto Trait Implementations
impl RefUnwindSafe for Capacity
impl Send for Capacity
impl Sync for Capacity
impl Unpin for Capacity
impl UnwindSafe for Capacity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more