Enum google_api_proto::google::cloud::compute::v1::backend::BalancingMode
source · #[repr(i32)]pub enum BalancingMode {
UndefinedBalancingMode = 0,
Connection = 246_311_646,
Rate = 2_508_000,
Utilization = 157_008_386,
}
Expand description
Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected.
Variants§
UndefinedBalancingMode = 0
A value indicating that the enum field is not set.
Connection = 246_311_646
Balance based on the number of simultaneous connections.
Rate = 2_508_000
Balance based on requests per second (RPS).
Utilization = 157_008_386
Balance based on the backend utilization.
Implementations§
source§impl BalancingMode
impl BalancingMode
source§impl BalancingMode
impl BalancingMode
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 BalancingMode
impl Clone for BalancingMode
source§fn clone(&self) -> BalancingMode
fn clone(&self) -> BalancingMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BalancingMode
impl Debug for BalancingMode
source§impl Default for BalancingMode
impl Default for BalancingMode
source§fn default() -> BalancingMode
fn default() -> BalancingMode
source§impl From<BalancingMode> for i32
impl From<BalancingMode> for i32
source§fn from(value: BalancingMode) -> i32
fn from(value: BalancingMode) -> i32
source§impl Hash for BalancingMode
impl Hash for BalancingMode
source§impl Ord for BalancingMode
impl Ord for BalancingMode
source§fn cmp(&self, other: &BalancingMode) -> Ordering
fn cmp(&self, other: &BalancingMode) -> 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 BalancingMode
impl PartialEq for BalancingMode
source§fn eq(&self, other: &BalancingMode) -> bool
fn eq(&self, other: &BalancingMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BalancingMode
impl PartialOrd for BalancingMode
source§fn partial_cmp(&self, other: &BalancingMode) -> Option<Ordering>
fn partial_cmp(&self, other: &BalancingMode) -> 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 BalancingMode
impl TryFrom<i32> for BalancingMode
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<BalancingMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<BalancingMode, UnknownEnumValue>
impl Copy for BalancingMode
impl Eq for BalancingMode
impl StructuralPartialEq for BalancingMode
Auto Trait Implementations§
impl Freeze for BalancingMode
impl RefUnwindSafe for BalancingMode
impl Send for BalancingMode
impl Sync for BalancingMode
impl Unpin for BalancingMode
impl UnwindSafe for BalancingMode
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