Enum monitor_types::RestartMode
source · pub enum RestartMode {
NoRestart,
OnFailure,
Always,
UnlessStopped,
}Variants§
Trait Implementations§
source§impl Clone for RestartMode
impl Clone for RestartMode
source§fn clone(&self) -> RestartMode
fn clone(&self) -> RestartMode
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 RestartMode
impl Debug for RestartMode
source§impl Default for RestartMode
impl Default for RestartMode
source§fn default() -> RestartMode
fn default() -> RestartMode
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RestartMode
impl<'de> Deserialize<'de> for RestartMode
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 Diff for RestartMode
impl Diff for RestartMode
§type Repr = RestartModeDiff
type Repr = RestartModeDiff
The type associated with the structs’ difference
source§fn diff_custom<D>(&self, other: &Self, visitor: &D) -> <D as Differ<Self>>::Reprwhere
D: Differ<Self>,
fn diff_custom<D>(&self, other: &Self, visitor: &D) -> <D as Differ<Self>>::Reprwhere
D: Differ<Self>,
Produces a diff between two structs, using an external diffing implementation
source§fn apply_custom<D>(&mut self, diff: &<D as Differ<Self>>::Repr, visitor: &D)where
D: Differ<Self>,
fn apply_custom<D>(&mut self, diff: &<D as Differ<Self>>::Repr, visitor: &D)where
D: Differ<Self>,
Applies the diff directly to the struct, using an external diffing implementation
source§impl Display for RestartMode
impl Display for RestartMode
source§impl FromStr for RestartMode
impl FromStr for RestartMode
source§impl Hash for RestartMode
impl Hash for RestartMode
source§impl PartialEq<RestartMode> for RestartMode
impl PartialEq<RestartMode> for RestartMode
source§fn eq(&self, other: &RestartMode) -> bool
fn eq(&self, other: &RestartMode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RestartMode
impl Serialize for RestartMode
source§impl TryFrom<&str> for RestartMode
impl TryFrom<&str> for RestartMode
impl Copy for RestartMode
impl Eq for RestartMode
impl StructuralEq for RestartMode
impl StructuralPartialEq for RestartMode
Auto Trait Implementations§
impl RefUnwindSafe for RestartMode
impl Send for RestartMode
impl Sync for RestartMode
impl Unpin for RestartMode
impl UnwindSafe for RestartMode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.