#[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 moresource§impl Debug for AutoscalingAlgorithm
impl Debug for AutoscalingAlgorithm
source§impl Default for AutoscalingAlgorithm
impl Default for AutoscalingAlgorithm
source§fn default() -> AutoscalingAlgorithm
fn default() -> AutoscalingAlgorithm
source§impl From<AutoscalingAlgorithm> for i32
impl From<AutoscalingAlgorithm> for i32
source§fn from(value: AutoscalingAlgorithm) -> i32
fn from(value: AutoscalingAlgorithm) -> i32
source§impl Hash for AutoscalingAlgorithm
impl Hash for AutoscalingAlgorithm
source§impl Ord for AutoscalingAlgorithm
impl Ord for AutoscalingAlgorithm
source§fn cmp(&self, other: &AutoscalingAlgorithm) -> Ordering
fn cmp(&self, other: &AutoscalingAlgorithm) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for AutoscalingAlgorithm
impl PartialEq for AutoscalingAlgorithm
source§fn eq(&self, other: &AutoscalingAlgorithm) -> bool
fn eq(&self, other: &AutoscalingAlgorithm) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AutoscalingAlgorithm
impl PartialOrd for AutoscalingAlgorithm
source§fn partial_cmp(&self, other: &AutoscalingAlgorithm) -> Option<Ordering>
fn partial_cmp(&self, other: &AutoscalingAlgorithm) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for AutoscalingAlgorithm
impl TryFrom<i32> for AutoscalingAlgorithm
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<AutoscalingAlgorithm, UnknownEnumValue>
fn try_from(value: i32) -> Result<AutoscalingAlgorithm, UnknownEnumValue>
impl Copy for AutoscalingAlgorithm
impl Eq for AutoscalingAlgorithm
impl StructuralPartialEq for AutoscalingAlgorithm
Auto Trait Implementations§
impl Freeze for AutoscalingAlgorithm
impl RefUnwindSafe for AutoscalingAlgorithm
impl Send for AutoscalingAlgorithm
impl Sync for AutoscalingAlgorithm
impl Unpin for AutoscalingAlgorithm
impl UnwindSafe for AutoscalingAlgorithm
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request