#[non_exhaustive]pub struct StandardSchedulerSettings {
pub target_cpu_utilization: f64,
pub target_throughput_utilization: f64,
pub min_instances: i32,
pub max_instances: i32,
/* private fields */
}Expand description
Scheduler settings for standard environment.
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.target_cpu_utilization: f64Target CPU utilization ratio to maintain when scaling.
target_throughput_utilization: f64Target throughput utilization ratio to maintain when scaling
min_instances: i32Minimum number of instances to run for this version. Set to zero to disable
min_instances configuration.
max_instances: i32Maximum number of instances to run for this version. Set to zero to disable
max_instances configuration.
Implementations§
Source§impl StandardSchedulerSettings
impl StandardSchedulerSettings
pub fn new() -> Self
Sourcepub fn set_target_cpu_utilization<T: Into<f64>>(self, v: T) -> Self
pub fn set_target_cpu_utilization<T: Into<f64>>(self, v: T) -> Self
Sets the value of target_cpu_utilization.
Sourcepub fn set_target_throughput_utilization<T: Into<f64>>(self, v: T) -> Self
pub fn set_target_throughput_utilization<T: Into<f64>>(self, v: T) -> Self
Sets the value of target_throughput_utilization.
Sourcepub fn set_min_instances<T: Into<i32>>(self, v: T) -> Self
pub fn set_min_instances<T: Into<i32>>(self, v: T) -> Self
Sets the value of min_instances.
Sourcepub fn set_max_instances<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_instances<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_instances.
Trait Implementations§
Source§impl Clone for StandardSchedulerSettings
impl Clone for StandardSchedulerSettings
Source§fn clone(&self) -> StandardSchedulerSettings
fn clone(&self) -> StandardSchedulerSettings
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 StandardSchedulerSettings
impl Debug for StandardSchedulerSettings
Source§impl Default for StandardSchedulerSettings
impl Default for StandardSchedulerSettings
Source§fn default() -> StandardSchedulerSettings
fn default() -> StandardSchedulerSettings
Returns the “default value” for a type. Read more
Source§impl Message for StandardSchedulerSettings
impl Message for StandardSchedulerSettings
impl StructuralPartialEq for StandardSchedulerSettings
Auto Trait Implementations§
impl Freeze for StandardSchedulerSettings
impl RefUnwindSafe for StandardSchedulerSettings
impl Send for StandardSchedulerSettings
impl Sync for StandardSchedulerSettings
impl Unpin for StandardSchedulerSettings
impl UnwindSafe for StandardSchedulerSettings
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