pub struct ClusterConfig {
pub cluster: ClusterId,
pub affinity_with_port: bool,
pub responses: u32,
pub requests: u32,
pub front_timeout: Duration,
pub back_timeout: Duration,
pub send_proxy_protocol: bool,
pub proxy_protocol_every_datagram: bool,
}Expand description
Per-cluster knobs the shell binds to a listener’s flows. Mirrors the
UdpClusterConfig proto but stays in pure-core terms. Defaults match the
proto defaults.
Fields§
§cluster: ClusterIdCluster the listener routes to.
affinity_with_port: boolKey on src_ip + src_port (true) vs src_ip only (false). Maps the
UdpAffinityKey proto enum.
responses: u32Expected replies per flow before close. 0 = unlimited (DNS = 1).
requests: u32Max client datagrams per flow before close. 0 = unlimited.
front_timeout: DurationIdle timeout (client direction). Resets on every datagram.
back_timeout: DurationIdle timeout (upstream direction). Resets on every reply.
send_proxy_protocol: boolPrepend a PPv2 DGRAM header to upstream datagrams.
proxy_protocol_every_datagram: boolPPv2 on every datagram (true) vs first-datagram-only (false, default).
Trait Implementations§
Source§impl Clone for ClusterConfig
impl Clone for ClusterConfig
Source§fn clone(&self) -> ClusterConfig
fn clone(&self) -> ClusterConfig
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 ClusterConfig
impl Debug for ClusterConfig
Source§impl Default for ClusterConfig
impl Default for ClusterConfig
impl Eq for ClusterConfig
Source§impl PartialEq for ClusterConfig
impl PartialEq for ClusterConfig
Source§fn eq(&self, other: &ClusterConfig) -> bool
fn eq(&self, other: &ClusterConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterConfig
Auto Trait Implementations§
impl Freeze for ClusterConfig
impl RefUnwindSafe for ClusterConfig
impl Send for ClusterConfig
impl Sync for ClusterConfig
impl Unpin for ClusterConfig
impl UnsafeUnpin for ClusterConfig
impl UnwindSafe for ClusterConfig
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,
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.