#[non_exhaustive]pub enum LivenessState {
Unspecified,
Unknown,
Healthy,
Unhealthy,
Draining,
Timeout,
UnknownValue(UnknownValue),
}Expand description
Liveness health check status for Flex instances.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
There is no liveness health check for the instance. Only applicable for instances in App Engine standard environment.
Unknown
The health checking system is aware of the instance but its health is not known at the moment.
Healthy
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
The instance is reachable, but does not conform to the requirements defined by the health check.
Draining
The instance is being drained. The existing connections to the instance have time to complete, but the new ones are being refused.
Timeout
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.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using LivenessState::value or LivenessState::name.
Implementations§
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§impl<'de> Deserialize<'de> for LivenessState
impl<'de> Deserialize<'de> for LivenessState
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for LivenessState
impl Display for LivenessState
Source§impl From<&str> for LivenessState
impl From<&str> for LivenessState
Source§impl From<i32> for LivenessState
impl From<i32> for LivenessState
Source§impl PartialEq for LivenessState
impl PartialEq for LivenessState
Source§impl Serialize for LivenessState
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.