#[repr(i32)]pub enum ProtectedHealthCheckPhase {
ProtectedHealthCheckCapability = 0,
ProtectedHealthCheckPrepare = 1,
ProtectedHealthCheckCommit = 2,
ProtectedHealthCheckAbort = 3,
ProtectedHealthCheckRelease = 4,
}Expand description
Where a protected health check change stands for one worker.
Variants§
ProtectedHealthCheckCapability = 0
Positive answer to QueryProtectedHealthCheckSupport.
ProtectedHealthCheckPrepare = 1
Validate and stage prepare without applying it.
ProtectedHealthCheckCommit = 2
Apply the staged version, configuration and values together.
ProtectedHealthCheckAbort = 3
Drop the staged version, or restore the state that preceded it.
ProtectedHealthCheckRelease = 4
The change succeeded everywhere: forget the state that preceded it.
Implementations§
Source§impl ProtectedHealthCheckPhase
impl ProtectedHealthCheckPhase
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of ProtectedHealthCheckPhase.
Sourcepub fn from_i32(value: i32) -> Option<ProtectedHealthCheckPhase>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ProtectedHealthCheckPhase>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ProtectedHealthCheckPhase, or None if value is not a valid variant.
Source§impl ProtectedHealthCheckPhase
impl ProtectedHealthCheckPhase
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 ProtectedHealthCheckPhase
impl Clone for ProtectedHealthCheckPhase
impl Copy for ProtectedHealthCheckPhase
Source§impl Debug for ProtectedHealthCheckPhase
impl Debug for ProtectedHealthCheckPhase
Source§impl Default for ProtectedHealthCheckPhase
impl Default for ProtectedHealthCheckPhase
Source§fn default() -> ProtectedHealthCheckPhase
fn default() -> ProtectedHealthCheckPhase
Source§impl<'de> Deserialize<'de> for ProtectedHealthCheckPhase
impl<'de> Deserialize<'de> for ProtectedHealthCheckPhase
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>,
impl Eq for ProtectedHealthCheckPhase
Source§impl From<ProtectedHealthCheckPhase> for i32
impl From<ProtectedHealthCheckPhase> for i32
Source§fn from(value: ProtectedHealthCheckPhase) -> i32
fn from(value: ProtectedHealthCheckPhase) -> i32
Source§impl Hash for ProtectedHealthCheckPhase
impl Hash for ProtectedHealthCheckPhase
Source§impl Ord for ProtectedHealthCheckPhase
impl Ord for ProtectedHealthCheckPhase
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for ProtectedHealthCheckPhase
impl PartialOrd for ProtectedHealthCheckPhase
impl StructuralPartialEq for ProtectedHealthCheckPhase
Source§impl TryFrom<i32> for ProtectedHealthCheckPhase
impl TryFrom<i32> for ProtectedHealthCheckPhase
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<ProtectedHealthCheckPhase, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProtectedHealthCheckPhase, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for ProtectedHealthCheckPhase
impl RefUnwindSafe for ProtectedHealthCheckPhase
impl Send for ProtectedHealthCheckPhase
impl Sync for ProtectedHealthCheckPhase
impl Unpin for ProtectedHealthCheckPhase
impl UnsafeUnpin for ProtectedHealthCheckPhase
impl UnwindSafe for ProtectedHealthCheckPhase
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.