#[non_exhaustive]pub struct WorkerPoolScaling {
pub manual_instance_count: Option<i32>,
/* private fields */
}Expand description
Worker pool scaling settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.manual_instance_count: Option<i32>Optional. The total number of instances in manual scaling mode.
Implementations§
Source§impl WorkerPoolScaling
impl WorkerPoolScaling
pub fn new() -> Self
Sourcepub fn set_manual_instance_count<T>(self, v: T) -> Self
pub fn set_manual_instance_count<T>(self, v: T) -> Self
Sets the value of manual_instance_count.
§Example
ⓘ
let x = WorkerPoolScaling::new().set_manual_instance_count(42);Sourcepub fn set_or_clear_manual_instance_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_manual_instance_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of manual_instance_count.
§Example
ⓘ
let x = WorkerPoolScaling::new().set_or_clear_manual_instance_count(Some(42));
let x = WorkerPoolScaling::new().set_or_clear_manual_instance_count(None::<i32>);Trait Implementations§
Source§impl Clone for WorkerPoolScaling
impl Clone for WorkerPoolScaling
Source§fn clone(&self) -> WorkerPoolScaling
fn clone(&self) -> WorkerPoolScaling
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 WorkerPoolScaling
impl Debug for WorkerPoolScaling
Source§impl Default for WorkerPoolScaling
impl Default for WorkerPoolScaling
Source§fn default() -> WorkerPoolScaling
fn default() -> WorkerPoolScaling
Returns the “default value” for a type. Read more
Source§impl Message for WorkerPoolScaling
impl Message for WorkerPoolScaling
Source§impl PartialEq for WorkerPoolScaling
impl PartialEq for WorkerPoolScaling
impl StructuralPartialEq for WorkerPoolScaling
Auto Trait Implementations§
impl Freeze for WorkerPoolScaling
impl RefUnwindSafe for WorkerPoolScaling
impl Send for WorkerPoolScaling
impl Sync for WorkerPoolScaling
impl Unpin for WorkerPoolScaling
impl UnwindSafe for WorkerPoolScaling
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