Enum google_api_proto::google::cloud::compute::v1::backend_service_connection_tracking_policy::ConnectionPersistenceOnUnhealthyBackends
source · #[repr(i32)]pub enum ConnectionPersistenceOnUnhealthyBackends {
UndefinedConnectionPersistenceOnUnhealthyBackends = 0,
AlwaysPersist = 38_400_900,
DefaultForProtocol = 145_265_356,
NeverPersist = 138_646_241,
}
Expand description
Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see Connection Persistence for Network Load Balancing and Connection Persistence for Internal TCP/UDP Load Balancing.
Variants§
UndefinedConnectionPersistenceOnUnhealthyBackends = 0
A value indicating that the enum field is not set.
AlwaysPersist = 38_400_900
DefaultForProtocol = 145_265_356
NeverPersist = 138_646_241
Implementations§
source§impl ConnectionPersistenceOnUnhealthyBackends
impl ConnectionPersistenceOnUnhealthyBackends
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ConnectionPersistenceOnUnhealthyBackends
.
sourcepub fn from_i32(value: i32) -> Option<ConnectionPersistenceOnUnhealthyBackends>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ConnectionPersistenceOnUnhealthyBackends>
Converts an i32
to a ConnectionPersistenceOnUnhealthyBackends
, or None
if value
is not a valid variant.
source§impl ConnectionPersistenceOnUnhealthyBackends
impl ConnectionPersistenceOnUnhealthyBackends
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 ConnectionPersistenceOnUnhealthyBackends
impl Clone for ConnectionPersistenceOnUnhealthyBackends
source§fn clone(&self) -> ConnectionPersistenceOnUnhealthyBackends
fn clone(&self) -> ConnectionPersistenceOnUnhealthyBackends
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ConnectionPersistenceOnUnhealthyBackends
impl Default for ConnectionPersistenceOnUnhealthyBackends
source§fn default() -> ConnectionPersistenceOnUnhealthyBackends
fn default() -> ConnectionPersistenceOnUnhealthyBackends
source§impl From<ConnectionPersistenceOnUnhealthyBackends> for i32
impl From<ConnectionPersistenceOnUnhealthyBackends> for i32
source§fn from(value: ConnectionPersistenceOnUnhealthyBackends) -> i32
fn from(value: ConnectionPersistenceOnUnhealthyBackends) -> i32
source§impl Ord for ConnectionPersistenceOnUnhealthyBackends
impl Ord for ConnectionPersistenceOnUnhealthyBackends
source§fn cmp(&self, other: &ConnectionPersistenceOnUnhealthyBackends) -> Ordering
fn cmp(&self, other: &ConnectionPersistenceOnUnhealthyBackends) -> 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 ConnectionPersistenceOnUnhealthyBackends
impl PartialEq for ConnectionPersistenceOnUnhealthyBackends
source§fn eq(&self, other: &ConnectionPersistenceOnUnhealthyBackends) -> bool
fn eq(&self, other: &ConnectionPersistenceOnUnhealthyBackends) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConnectionPersistenceOnUnhealthyBackends
impl PartialOrd for ConnectionPersistenceOnUnhealthyBackends
source§fn partial_cmp(
&self,
other: &ConnectionPersistenceOnUnhealthyBackends,
) -> Option<Ordering>
fn partial_cmp( &self, other: &ConnectionPersistenceOnUnhealthyBackends, ) -> 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 ConnectionPersistenceOnUnhealthyBackends
impl TryFrom<i32> for ConnectionPersistenceOnUnhealthyBackends
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(
value: i32,
) -> Result<ConnectionPersistenceOnUnhealthyBackends, UnknownEnumValue>
fn try_from( value: i32, ) -> Result<ConnectionPersistenceOnUnhealthyBackends, UnknownEnumValue>
impl Copy for ConnectionPersistenceOnUnhealthyBackends
impl Eq for ConnectionPersistenceOnUnhealthyBackends
impl StructuralPartialEq for ConnectionPersistenceOnUnhealthyBackends
Auto Trait Implementations§
impl Freeze for ConnectionPersistenceOnUnhealthyBackends
impl RefUnwindSafe for ConnectionPersistenceOnUnhealthyBackends
impl Send for ConnectionPersistenceOnUnhealthyBackends
impl Sync for ConnectionPersistenceOnUnhealthyBackends
impl Unpin for ConnectionPersistenceOnUnhealthyBackends
impl UnwindSafe for ConnectionPersistenceOnUnhealthyBackends
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