Struct sozu_command_lib::config::TcpClusterConfig
source · pub struct TcpClusterConfig {
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>,
}
Fields§
§cluster_id: String
§frontends: Vec<TcpFrontendConfig>
§backends: Vec<BackendConfig>
§proxy_protocol: Option<ProxyProtocolConfig>
§load_balancing: LoadBalancingAlgorithms
§load_metric: Option<LoadMetric>
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 copy of the value. Read more
1.0.0 · 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
This method 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 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<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.