Enum google_api_proto::google::appengine::v1::instance::liveness::LivenessState
source · #[repr(i32)]pub enum LivenessState {
Unspecified = 0,
Unknown = 1,
Healthy = 2,
Unhealthy = 3,
Draining = 4,
Timeout = 5,
}
Expand description
Liveness health check status for Flex instances.
Variants§
Unspecified = 0
There is no liveness health check for the instance. Only applicable for instances in App Engine standard environment.
Unknown = 1
The health checking system is aware of the instance but its health is not known at the moment.
Healthy = 2
The instance is reachable i.e. a connection to the application health checking endpoint can be established, and conforms to the requirements defined by the health check.
Unhealthy = 3
The instance is reachable, but does not conform to the requirements defined by the health check.
Draining = 4
The instance is being drained. The existing connections to the instance have time to complete, but the new ones are being refused.
Timeout = 5
The instance is unreachable i.e. a connection to the application health checking endpoint cannot be established, or the server does not respond within the specified timeout.
Implementations§
source§impl LivenessState
impl LivenessState
source§impl LivenessState
impl LivenessState
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 LivenessState
impl Clone for LivenessState
source§fn clone(&self) -> LivenessState
fn clone(&self) -> LivenessState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LivenessState
impl Debug for LivenessState
source§impl Default for LivenessState
impl Default for LivenessState
source§fn default() -> LivenessState
fn default() -> LivenessState
source§impl From<LivenessState> for i32
impl From<LivenessState> for i32
source§fn from(value: LivenessState) -> i32
fn from(value: LivenessState) -> i32
source§impl Hash for LivenessState
impl Hash for LivenessState
source§impl Ord for LivenessState
impl Ord for LivenessState
source§fn cmp(&self, other: &LivenessState) -> Ordering
fn cmp(&self, other: &LivenessState) -> 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 LivenessState
impl PartialEq for LivenessState
source§fn eq(&self, other: &LivenessState) -> bool
fn eq(&self, other: &LivenessState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LivenessState
impl PartialOrd for LivenessState
source§fn partial_cmp(&self, other: &LivenessState) -> Option<Ordering>
fn partial_cmp(&self, other: &LivenessState) -> 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 LivenessState
impl TryFrom<i32> for LivenessState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<LivenessState, UnknownEnumValue>
fn try_from(value: i32) -> Result<LivenessState, UnknownEnumValue>
impl Copy for LivenessState
impl Eq for LivenessState
impl StructuralPartialEq for LivenessState
Auto Trait Implementations§
impl Freeze for LivenessState
impl RefUnwindSafe for LivenessState
impl Send for LivenessState
impl Sync for LivenessState
impl Unpin for LivenessState
impl UnwindSafe for LivenessState
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