Enum tiny_actor::config::Growth
source · [−]pub enum Growth {
Exponential(f32),
Linear,
}Expand description
How the timeout of an unbounded channel should grow, given more messages in the channel. This can either be linear or exponential.
Default
The default is exponential, with a growth-factor of 1.3.
Variants
Exponential(f32)
timeout = base_timeout * (growth ^ (msg_count - start_at))
Linear
timeout = base_timeout * (msg_count - start_at)
Trait Implementations
impl StructuralPartialEq for Growth
Auto Trait Implementations
impl RefUnwindSafe for Growth
impl Send for Growth
impl Sync for Growth
impl Unpin for Growth
impl UnwindSafe for Growth
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