pub struct TcpClusterConfig {Show 13 fields
pub cluster_id: String,
pub frontends: Vec<TcpFrontendConfig>,
pub backends: Vec<BackendConfig>,
pub proxy_protocol: Option<ProxyProtocolConfig>,
pub load_balancing: LoadBalancingAlgorithms,
pub load_metric: Option<LoadMetric>,
pub answers: BTreeMap<String, String>,
pub https_redirect_port: Option<u32>,
pub authorized_hashes: Vec<String>,
pub www_authenticate: Option<String>,
pub max_connections_per_ip: Option<u64>,
pub retry_after: Option<u32>,
pub health_check: Option<HealthCheckConfig>,
}Fields§
§cluster_id: String§frontends: Vec<TcpFrontendConfig>§backends: Vec<BackendConfig>§proxy_protocol: Option<ProxyProtocolConfig>§load_balancing: LoadBalancingAlgorithms§load_metric: Option<LoadMetric>§answers: BTreeMap<String, String>Per-status template body map (already loaded from disk). Even
though TCP clusters do not emit HTTP responses, the field is
carried for shape uniformity with HttpClusterConfig.
https_redirect_port: Option<u32>§www_authenticate: Option<String>§max_connections_per_ip: Option<u64>Per-cluster override of the global max_connections_per_ip. See
FileClusterConfig::max_connections_per_ip for semantics.
retry_after: Option<u32>Per-cluster override of the global retry_after. TCP listeners
never emit Retry-After; the field is carried for shape
uniformity with HttpClusterConfig.
health_check: Option<HealthCheckConfig>Optional HTTP health-check configuration. TCP clusters carry this
field for shape uniformity with HttpClusterConfig; probes are
HTTP/1.1 only and TCP-only backends should leave this absent.
Implementations§
Source§impl TcpClusterConfig
impl TcpClusterConfig
pub fn generate_requests(&self) -> Result<Vec<Request>, ConfigError>
Trait Implementations§
Source§impl Clone for TcpClusterConfig
impl Clone for TcpClusterConfig
Source§fn clone(&self) -> TcpClusterConfig
fn clone(&self) -> TcpClusterConfig
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 TcpClusterConfig
impl Debug for TcpClusterConfig
Source§impl<'de> Deserialize<'de> for TcpClusterConfig
impl<'de> Deserialize<'de> for TcpClusterConfig
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 Hash for TcpClusterConfig
impl Hash for TcpClusterConfig
Source§impl PartialEq for TcpClusterConfig
impl PartialEq for TcpClusterConfig
Source§fn eq(&self, other: &TcpClusterConfig) -> bool
fn eq(&self, other: &TcpClusterConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TcpClusterConfig
impl Serialize for TcpClusterConfig
impl Eq for TcpClusterConfig
impl StructuralPartialEq for TcpClusterConfig
Auto Trait Implementations§
impl Freeze for TcpClusterConfig
impl RefUnwindSafe for TcpClusterConfig
impl Send for TcpClusterConfig
impl Sync for TcpClusterConfig
impl Unpin for TcpClusterConfig
impl UnsafeUnpin for TcpClusterConfig
impl UnwindSafe for TcpClusterConfig
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.