#[non_exhaustive]pub enum HealthState {
Unspecified,
Healthy,
Unhealthy,
UnknownValue(UnknownValue),
}Expand description
The substate of the NotebookRuntime to display health information.
§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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified
Unspecified health state.
Healthy
NotebookRuntime is in healthy state. Applies to ACTIVE state.
Unhealthy
NotebookRuntime is in unhealthy state. Applies to ACTIVE state.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using HealthState::value or HealthState::name.
Implementations§
Trait Implementations§
Source§impl Clone for HealthState
impl Clone for HealthState
Source§fn clone(&self) -> HealthState
fn clone(&self) -> HealthState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HealthState
impl Debug for HealthState
Source§impl Default for HealthState
impl Default 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HealthState
impl Display for HealthState
Source§impl From<&str> for HealthState
impl From<&str> for HealthState
Source§impl From<i32> for HealthState
impl From<i32> for HealthState
Source§impl PartialEq for HealthState
impl PartialEq for HealthState
Source§impl Serialize for HealthState
impl Serialize 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 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
Mutably borrows from an owned value. Read more