pub enum HealthState {
Healthy,
Deferring,
Suspended,
Repairing,
Warning,
Error,
Terminal,
}Variants§
Healthy
The service node is fully operational with no issues.
Deferring
The service node is fully operational with no issues; however, it is requesting to defer shutdown or restart. A deferring node should not accept “new” jobs but should allow polling of existing jobs.
Suspended
The service node is no longer serving requests and is ready to be shut down. Nodes in a deferring state are expected to change to a suspended state once they have completed any pending work. A suspended node must also indicate in its readiness probe that it should not receive incoming requests.
Repairing
The service node is operating in a degraded state, but is capable of automatically recovering. If any of the nodes in the service were to be restarted, it may result in correctness or consistency issues with the service. Ex: When a cassandra node decides it is not up-to-date and needs to repair, the node is operating in a degraded state. Restarting the node prior to the repair being complete might result in the service being unable to correctly respond to requests.
Warning
The service node is in a state that is trending towards an error. If no corrective action is taken, the health is expected to become an error.
Error
The service node is operationally unhealthy.
Terminal
The service node has entered an unrecoverable state. All nodes of the service should be stopped and no automated attempt to restart the node should be made. Ex: a service fails to migrate to a new schema and is left in an unrecoverable state.
Implementations§
Trait Implementations§
Source§impl Clone for HealthState
impl Clone for HealthState
Source§fn clone(&self) -> HealthState
fn clone(&self) -> HealthState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HealthState
impl Debug for HealthState
Source§impl<'de> Deserialize<'de> for HealthState
impl<'de> Deserialize<'de> for HealthState
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 HealthState
impl Display for HealthState
Source§impl FromPlain for HealthState
impl FromPlain for HealthState
Source§type Err = ParseEnumError
type Err = ParseEnumError
Source§fn from_plain(v: &str) -> Result<HealthState, ParseEnumError>
fn from_plain(v: &str) -> Result<HealthState, ParseEnumError>
Source§impl FromStr for HealthState
impl FromStr for HealthState
Source§type Err = ParseEnumError
type Err = ParseEnumError
Source§fn from_str(v: &str) -> Result<HealthState, ParseEnumError>
fn from_str(v: &str) -> Result<HealthState, ParseEnumError>
s to return a value of this type. Read moreSource§impl Hash for HealthState
impl Hash for HealthState
Source§impl Ord for HealthState
impl Ord for HealthState
Source§fn cmp(&self, other: &HealthState) -> Ordering
fn cmp(&self, other: &HealthState) -> 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 HealthState
impl PartialEq for HealthState
Source§impl PartialOrd for HealthState
impl PartialOrd for HealthState
Source§impl Plain for HealthState
impl Plain for HealthState
Source§impl Serialize for HealthState
impl Serialize for HealthState
impl Eq for HealthState
impl StructuralPartialEq for HealthState
Auto Trait Implementations§
impl Freeze for HealthState
impl RefUnwindSafe for HealthState
impl Send for HealthState
impl Sync for HealthState
impl Unpin for HealthState
impl UnsafeUnpin for HealthState
impl UnwindSafe for HealthState
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<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§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.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
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.