pub struct ScalePoolPolicy {
pub min_workers: u32,
pub max_workers: u32,
}Expand description
ScalePoolPolicy
Fields§
§min_workers: u32Minimum number of worker canisters to keep alive
max_workers: u32Maximum number of worker canisters to allow
Trait Implementations§
Source§impl Clone for ScalePoolPolicy
impl Clone for ScalePoolPolicy
Source§fn clone(&self) -> ScalePoolPolicy
fn clone(&self) -> ScalePoolPolicy
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 ScalePoolPolicy
impl Debug for ScalePoolPolicy
Source§impl Default for ScalePoolPolicy
impl Default for ScalePoolPolicy
Source§impl<'de> Deserialize<'de> for ScalePoolPolicywhere
ScalePoolPolicy: Default,
impl<'de> Deserialize<'de> for ScalePoolPolicywhere
ScalePoolPolicy: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScalePoolPolicy
impl RefUnwindSafe for ScalePoolPolicy
impl Send for ScalePoolPolicy
impl Sync for ScalePoolPolicy
impl Unpin for ScalePoolPolicy
impl UnwindSafe for ScalePoolPolicy
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