pub enum ScalingDecision {
Grow(usize),
Shrink(usize),
NoChange,
}Expand description
Decision made by the auto-scaler
Variants§
Grow(usize)
Grow the queue by specified amount
Shrink(usize)
Shrink the queue by specified amount
NoChange
No change needed
Trait Implementations§
Source§impl Clone for ScalingDecision
impl Clone for ScalingDecision
Source§fn clone(&self) -> ScalingDecision
fn clone(&self) -> ScalingDecision
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalingDecision
impl Debug for ScalingDecision
Source§impl PartialEq for ScalingDecision
impl PartialEq for ScalingDecision
impl Copy for ScalingDecision
impl StructuralPartialEq for ScalingDecision
Auto Trait Implementations§
impl Freeze for ScalingDecision
impl RefUnwindSafe for ScalingDecision
impl Send for ScalingDecision
impl Sync for ScalingDecision
impl Unpin for ScalingDecision
impl UnwindSafe for ScalingDecision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter