pub enum HostHealthMode {
None,
Up,
Down,
Auto,
}Expand description
How Relay decides whether a record value is healthy (RecordValue.host_health). An
unhealthy value is left out of answers.
Variants§
None
Not managed: always served as healthy. Core’s default.
Up
Forced healthy; the value’s health check stays configured but does not run.
Down
Forced unhealthy (e.g. maintenance); the health check stays configured but does not run.
Auto
The value’s health check decides; the only mode in which the check runs. Needs a
health check: HealthChecks::create switches the
value to Auto, HealthChecks::delete turns
Auto back into None.
Implementations§
Trait Implementations§
Source§impl Clone for HostHealthMode
impl Clone for HostHealthMode
Source§fn clone(&self) -> HostHealthMode
fn clone(&self) -> HostHealthMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostHealthMode
Source§impl Debug for HostHealthMode
impl Debug for HostHealthMode
Source§impl<'de> Deserialize<'de> for HostHealthMode
impl<'de> Deserialize<'de> for HostHealthMode
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 HostHealthMode
impl Display for HostHealthMode
impl Eq for HostHealthMode
Source§impl FromStr for HostHealthMode
impl FromStr for HostHealthMode
Source§impl Hash for HostHealthMode
impl Hash for HostHealthMode
Source§impl PartialEq for HostHealthMode
impl PartialEq for HostHealthMode
Source§impl Serialize for HostHealthMode
impl Serialize for HostHealthMode
impl StructuralPartialEq for HostHealthMode
Auto Trait Implementations§
impl Freeze for HostHealthMode
impl RefUnwindSafe for HostHealthMode
impl Send for HostHealthMode
impl Sync for HostHealthMode
impl Unpin for HostHealthMode
impl UnsafeUnpin for HostHealthMode
impl UnwindSafe for HostHealthMode
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.