pub enum Algorithm {
Aimd(Aimd),
Vegas(Vegas),
}Expand description
Algorithm selection enum for the adaptive limiter.
Variants§
Trait Implementations§
Source§impl ConcurrencyAlgorithm for Algorithm
impl ConcurrencyAlgorithm for Algorithm
Source§fn record_success(&self, latency: Duration)
fn record_success(&self, latency: Duration)
Record a successful request with its latency.
Source§fn record_failure(&self)
fn record_failure(&self)
Record a failed request.
Source§fn record_dropped(&self)
fn record_dropped(&self)
Record a dropped/cancelled request.
Auto Trait Implementations§
impl !Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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