pub enum ScaleAction {
None,
Grow,
Shrink,
}Expand description
What a policy wants done this evaluation.
Variants§
None
Leave the pool at its current size.
Grow
Start one more instance (if below max).
Shrink
Stop one idle instance (if above min).
Trait Implementations§
Source§impl Clone for ScaleAction
impl Clone for ScaleAction
Source§fn clone(&self) -> ScaleAction
fn clone(&self) -> ScaleAction
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 ScaleAction
impl Eq for ScaleAction
Source§impl PartialEq for ScaleAction
impl PartialEq for ScaleAction
impl StructuralPartialEq for ScaleAction
Auto Trait Implementations§
impl Freeze for ScaleAction
impl RefUnwindSafe for ScaleAction
impl Send for ScaleAction
impl Sync for ScaleAction
impl Unpin for ScaleAction
impl UnsafeUnpin for ScaleAction
impl UnwindSafe for ScaleAction
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