#[repr(i32)]pub enum HealthCheckMode {
Http = 0,
Tcp = 1,
}Expand description
How a health-check probe decides that a backend is healthy.
Variants§
Http = 0
Send an HTTP GET <uri> and judge the response status against
accepted_statuses (or expected_status when that list is empty).
Tcp = 1
Healthy iff a TCP connection to the backend is established within
timeout. No byte is sent; the connection is closed as soon as it
is established. uri is ignored; a non-zero expected_status or a
non-empty accepted_statuses is refused. A peer that predates this
field ignores it and runs the HTTP probe instead.
Implementations§
Source§impl HealthCheckMode
impl HealthCheckMode
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 HealthCheckMode
impl Clone for HealthCheckMode
impl Copy for HealthCheckMode
Source§impl Debug for HealthCheckMode
impl Debug for HealthCheckMode
Source§impl Default for HealthCheckMode
impl Default for HealthCheckMode
Source§fn default() -> HealthCheckMode
fn default() -> HealthCheckMode
Source§impl<'de> Deserialize<'de> for HealthCheckMode
impl<'de> Deserialize<'de> for HealthCheckMode
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 HealthCheckMode
Source§impl From<HealthCheckMode> for i32
impl From<HealthCheckMode> for i32
Source§fn from(value: HealthCheckMode) -> i32
fn from(value: HealthCheckMode) -> i32
Source§impl Hash for HealthCheckMode
impl Hash for HealthCheckMode
Source§impl Ord for HealthCheckMode
impl Ord for HealthCheckMode
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 PartialEq for HealthCheckMode
impl PartialEq for HealthCheckMode
Source§impl PartialOrd for HealthCheckMode
impl PartialOrd for HealthCheckMode
Source§impl Serialize for HealthCheckMode
impl Serialize for HealthCheckMode
impl StructuralPartialEq for HealthCheckMode
Source§impl TryFrom<i32> for HealthCheckMode
impl TryFrom<i32> for HealthCheckMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<HealthCheckMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<HealthCheckMode, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for HealthCheckMode
impl RefUnwindSafe for HealthCheckMode
impl Send for HealthCheckMode
impl Sync for HealthCheckMode
impl Unpin for HealthCheckMode
impl UnsafeUnpin for HealthCheckMode
impl UnwindSafe for HealthCheckMode
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.