#[repr(i32)]pub enum AutoscalingAlgorithm {
Unknown = 0,
None = 1,
Basic = 2,
}Expand description
Specifies the algorithm used to determine the number of worker processes to run at any given point in time, based on the amount of data left to process, the number of workers, and how quickly existing workers are processing data.
Variants§
Unknown = 0
The algorithm is unknown, or unspecified.
None = 1
Disable autoscaling.
Basic = 2
Increase worker count over time to reduce job execution time.
Implementations§
Source§impl AutoscalingAlgorithm
impl AutoscalingAlgorithm
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of AutoscalingAlgorithm.
Sourcepub fn from_i32(value: i32) -> Option<AutoscalingAlgorithm>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<AutoscalingAlgorithm>
Converts an i32 to a AutoscalingAlgorithm, or None if value is not a valid variant.
Source§impl AutoscalingAlgorithm
impl AutoscalingAlgorithm
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for AutoscalingAlgorithm
impl Clone for AutoscalingAlgorithm
Source§fn clone(&self) -> AutoscalingAlgorithm
fn clone(&self) -> AutoscalingAlgorithm
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more