#[non_exhaustive]pub enum AutoscaleMode {
Aimd {
increase_after_successes: usize,
decrease_factor: f32,
},
LoadSignals,
}Expand description
Strategy used to adjust desired concurrency.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Aimd
Deterministic additive-increase, multiplicative-decrease scaling.
Fields
LoadSignals
Periodic scaling based on registered load-signal histories.
Trait Implementations§
Source§impl Clone for AutoscaleMode
impl Clone for AutoscaleMode
Source§fn clone(&self) -> AutoscaleMode
fn clone(&self) -> AutoscaleMode
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 moreAuto Trait Implementations§
impl Freeze for AutoscaleMode
impl RefUnwindSafe for AutoscaleMode
impl Send for AutoscaleMode
impl Sync for AutoscaleMode
impl Unpin for AutoscaleMode
impl UnsafeUnpin for AutoscaleMode
impl UnwindSafe for AutoscaleMode
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