pub struct FileUdpClusterConfig {
pub affinity_key: Option<UdpAffinityKey>,
pub responses: Option<u32>,
pub requests: Option<u32>,
pub send_proxy_protocol: Option<bool>,
pub proxy_protocol_every_datagram: Option<bool>,
pub health: Option<FileUdpHealthConfig>,
}Expand description
UDP-specific cluster knobs, parsed from a [clusters.<id>.udp] block.
Fields§
§affinity_key: Option<UdpAffinityKey>flow affinity key, parsed in SCREAMING_SNAKE_CASE: "SOURCE_IP"
(default) or "SOURCE_IP_PORT".
responses: Option<u32>expected replies per flow; 0 = unlimited.
requests: Option<u32>max client datagrams per flow; 0 = unlimited.
send_proxy_protocol: Option<bool>send a PROXY protocol v2 header to the backend.
proxy_protocol_every_datagram: Option<bool>prepend PPv2 to every datagram; false = first-datagram only.
health: Option<FileUdpHealthConfig>optional backend health-check configuration.
Implementations§
Source§impl FileUdpClusterConfig
impl FileUdpClusterConfig
pub fn to_proto(&self) -> UdpClusterConfig
Trait Implementations§
Source§impl Clone for FileUdpClusterConfig
impl Clone for FileUdpClusterConfig
Source§fn clone(&self) -> FileUdpClusterConfig
fn clone(&self) -> FileUdpClusterConfig
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 FileUdpClusterConfig
impl Debug for FileUdpClusterConfig
Source§impl<'de> Deserialize<'de> for FileUdpClusterConfig
impl<'de> Deserialize<'de> for FileUdpClusterConfig
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 FileUdpClusterConfig
Source§impl Hash for FileUdpClusterConfig
impl Hash for FileUdpClusterConfig
Source§impl PartialEq for FileUdpClusterConfig
impl PartialEq for FileUdpClusterConfig
Source§fn eq(&self, other: &FileUdpClusterConfig) -> bool
fn eq(&self, other: &FileUdpClusterConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FileUdpClusterConfig
impl Serialize for FileUdpClusterConfig
impl StructuralPartialEq for FileUdpClusterConfig
Auto Trait Implementations§
impl Freeze for FileUdpClusterConfig
impl RefUnwindSafe for FileUdpClusterConfig
impl Send for FileUdpClusterConfig
impl Sync for FileUdpClusterConfig
impl Unpin for FileUdpClusterConfig
impl UnsafeUnpin for FileUdpClusterConfig
impl UnwindSafe for FileUdpClusterConfig
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.