pub struct FileUdpHealthConfig {
pub mode: Option<UdpHealthMode>,
pub tcp_port: Option<u32>,
pub rise: Option<u32>,
pub fall: Option<u32>,
pub fail_open: Option<bool>,
pub udp_probe_payload: Option<String>,
pub probe_interval_seconds: Option<u32>,
pub probe_timeout_seconds: Option<u32>,
}Expand description
UDP backend health-check configuration, parsed from
[clusters.<id>.udp.health].
Fields§
§mode: Option<UdpHealthMode>probe mode, parsed in SCREAMING_SNAKE_CASE: "HEALTH_OFF",
"TCP_PROBE", or "UDP_PROBE". Defaults to TCP_PROBE when a
udp.health block is present.
tcp_port: Option<u32>§rise: Option<u32>§fall: Option<u32>§fail_open: Option<bool>§udp_probe_payload: Option<String>hex-free literal payload sent for a UDP probe.
probe_interval_seconds: Option<u32>§probe_timeout_seconds: Option<u32>Implementations§
Source§impl FileUdpHealthConfig
impl FileUdpHealthConfig
pub fn to_proto(&self) -> UdpHealthConfig
Trait Implementations§
Source§impl Clone for FileUdpHealthConfig
impl Clone for FileUdpHealthConfig
Source§fn clone(&self) -> FileUdpHealthConfig
fn clone(&self) -> FileUdpHealthConfig
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 moreSource§impl Debug for FileUdpHealthConfig
impl Debug for FileUdpHealthConfig
Source§impl<'de> Deserialize<'de> for FileUdpHealthConfig
impl<'de> Deserialize<'de> for FileUdpHealthConfig
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
impl Eq for FileUdpHealthConfig
Source§impl Hash for FileUdpHealthConfig
impl Hash for FileUdpHealthConfig
Source§impl PartialEq for FileUdpHealthConfig
impl PartialEq for FileUdpHealthConfig
Source§fn eq(&self, other: &FileUdpHealthConfig) -> bool
fn eq(&self, other: &FileUdpHealthConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FileUdpHealthConfig
impl Serialize for FileUdpHealthConfig
impl StructuralPartialEq for FileUdpHealthConfig
Auto Trait Implementations§
impl Freeze for FileUdpHealthConfig
impl RefUnwindSafe for FileUdpHealthConfig
impl Send for FileUdpHealthConfig
impl Sync for FileUdpHealthConfig
impl Unpin for FileUdpHealthConfig
impl UnsafeUnpin for FileUdpHealthConfig
impl UnwindSafe for FileUdpHealthConfig
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
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>,
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.