#[non_exhaustive]pub enum ApplyClass {
Live,
Restart,
Redeploy,
}Expand description
When a changed field takes effect.
The variants are ordered from least to most disruptive, so the strictest class of a set of changes is their maximum.
§Examples
use stratum_node_config::ApplyClass;
let classes = [ApplyClass::Live, ApplyClass::Redeploy, ApplyClass::Restart];
assert_eq!(classes.into_iter().max(), Some(ApplyClass::Redeploy));
assert_eq!(ApplyClass::Restart.to_string(), "restart");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.
Live
Takes effect in the running node without a restart.
Restart
Takes effect when the controller process restarts.
Redeploy
Takes effect only after the deployment around the node is rebuilt, for example the tunnel or the public origin.
Implementations§
Trait Implementations§
Source§impl Clone for ApplyClass
impl Clone for ApplyClass
impl Copy for ApplyClass
Source§impl Debug for ApplyClass
impl Debug for ApplyClass
Source§impl Display for ApplyClass
impl Display for ApplyClass
impl Eq for ApplyClass
Source§impl Hash for ApplyClass
impl Hash for ApplyClass
Source§impl Ord for ApplyClass
impl Ord for ApplyClass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ApplyClass
impl PartialEq for ApplyClass
Source§impl PartialOrd for ApplyClass
impl PartialOrd for ApplyClass
Source§impl Serialize for ApplyClass
impl Serialize for ApplyClass
impl StructuralPartialEq for ApplyClass
Auto Trait Implementations§
impl Forget for ApplyClass
impl Freeze for ApplyClass
impl Move for ApplyClass
impl RefUnwindSafe for ApplyClass
impl Send for ApplyClass
impl Sync for ApplyClass
impl Unpin for ApplyClass
impl UnsafeUnpin for ApplyClass
impl UnwindSafe for ApplyClass
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
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
Compare self to
key and return true if they are equal.