#[non_exhaustive]pub enum ScaleDecision {
ScaleUp,
ScaleDown,
Hold,
}Expand description
The concurrency adjustment recommended by current system load.
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.
ScaleUp
Increase desired concurrency.
ScaleDown
Decrease desired concurrency.
Hold
Keep desired concurrency unchanged.
Trait Implementations§
Source§impl Clone for ScaleDecision
impl Clone for ScaleDecision
Source§fn clone(&self) -> ScaleDecision
fn clone(&self) -> ScaleDecision
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 moreimpl Copy for ScaleDecision
Source§impl Debug for ScaleDecision
impl Debug for ScaleDecision
impl Eq for ScaleDecision
Source§impl PartialEq for ScaleDecision
impl PartialEq for ScaleDecision
impl StructuralPartialEq for ScaleDecision
Auto Trait Implementations§
impl Freeze for ScaleDecision
impl RefUnwindSafe for ScaleDecision
impl Send for ScaleDecision
impl Sync for ScaleDecision
impl Unpin for ScaleDecision
impl UnsafeUnpin for ScaleDecision
impl UnwindSafe for ScaleDecision
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