Enum google_api_proto::google::cloud::compute::v1::managed_instance_instance_health::DetailedHealthState
source · #[repr(i32)]pub enum DetailedHealthState {
UndefinedDetailedHealthState = 0,
Draining = 480_455_402,
Healthy = 439_801_213,
Timeout = 477_813_057,
Unhealthy = 462_118_084,
Unknown = 433_141_802,
}
Expand description
[Output Only] The current detailed instance health state.
Variants§
UndefinedDetailedHealthState = 0
A value indicating that the enum field is not set.
Draining = 480_455_402
The instance is being drained. The existing connections to the instance have time to complete, but the new ones are being refused.
Healthy = 439_801_213
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.
Timeout = 477_813_057
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.
Unhealthy = 462_118_084
The instance is reachable, but does not conform to the requirements defined by the health check.
Unknown = 433_141_802
The health checking system is aware of the instance but its health is not known at the moment.
Implementations§
source§impl DetailedHealthState
impl DetailedHealthState
sourcepub fn from_i32(value: i32) -> Option<DetailedHealthState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<DetailedHealthState>
Converts an i32
to a DetailedHealthState
, or None
if value
is not a valid variant.
source§impl DetailedHealthState
impl DetailedHealthState
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 DetailedHealthState
impl Clone for DetailedHealthState
source§fn clone(&self) -> DetailedHealthState
fn clone(&self) -> DetailedHealthState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DetailedHealthState
impl Debug for DetailedHealthState
source§impl Default for DetailedHealthState
impl Default for DetailedHealthState
source§fn default() -> DetailedHealthState
fn default() -> DetailedHealthState
source§impl From<DetailedHealthState> for i32
impl From<DetailedHealthState> for i32
source§fn from(value: DetailedHealthState) -> i32
fn from(value: DetailedHealthState) -> i32
source§impl Hash for DetailedHealthState
impl Hash for DetailedHealthState
source§impl Ord for DetailedHealthState
impl Ord for DetailedHealthState
source§fn cmp(&self, other: &DetailedHealthState) -> Ordering
fn cmp(&self, other: &DetailedHealthState) -> 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 DetailedHealthState
impl PartialEq for DetailedHealthState
source§fn eq(&self, other: &DetailedHealthState) -> bool
fn eq(&self, other: &DetailedHealthState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DetailedHealthState
impl PartialOrd for DetailedHealthState
source§fn partial_cmp(&self, other: &DetailedHealthState) -> Option<Ordering>
fn partial_cmp(&self, other: &DetailedHealthState) -> 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 DetailedHealthState
impl TryFrom<i32> for DetailedHealthState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<DetailedHealthState, UnknownEnumValue>
fn try_from(value: i32) -> Result<DetailedHealthState, UnknownEnumValue>
impl Copy for DetailedHealthState
impl Eq for DetailedHealthState
impl StructuralPartialEq for DetailedHealthState
Auto Trait Implementations§
impl Freeze for DetailedHealthState
impl RefUnwindSafe for DetailedHealthState
impl Send for DetailedHealthState
impl Sync for DetailedHealthState
impl Unpin for DetailedHealthState
impl UnwindSafe for DetailedHealthState
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