pub struct FileClusterConfig {
pub frontends: Vec<FileClusterFrontendConfig>,
pub backends: Vec<BackendConfig>,
pub protocol: FileClusterProtocolConfig,
pub sticky_session: Option<bool>,
pub https_redirect: Option<bool>,
pub send_proxy: Option<bool>,
pub load_balancing: LoadBalancingAlgorithms,
pub answer_503: Option<String>,
pub load_metric: Option<LoadMetric>,
}
Fields§
§frontends: Vec<FileClusterFrontendConfig>
§backends: Vec<BackendConfig>
§protocol: FileClusterProtocolConfig
§sticky_session: Option<bool>
§https_redirect: Option<bool>
§send_proxy: Option<bool>
§load_balancing: LoadBalancingAlgorithms
§answer_503: Option<String>
§load_metric: Option<LoadMetric>
Implementations§
Source§impl FileClusterConfig
impl FileClusterConfig
pub fn to_cluster_config( self, cluster_id: &str, expect_proxy: &HashSet<SocketAddr>, ) -> Result<ClusterConfig, ConfigError>
Trait Implementations§
Source§impl Clone for FileClusterConfig
impl Clone for FileClusterConfig
Source§fn clone(&self) -> FileClusterConfig
fn clone(&self) -> FileClusterConfig
Returns a duplicate 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 FileClusterConfig
impl Debug for FileClusterConfig
Source§impl<'de> Deserialize<'de> for FileClusterConfig
impl<'de> Deserialize<'de> for FileClusterConfig
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 FileClusterConfig
impl Hash for FileClusterConfig
Source§impl PartialEq for FileClusterConfig
impl PartialEq for FileClusterConfig
Source§impl Serialize for FileClusterConfig
impl Serialize for FileClusterConfig
impl Eq for FileClusterConfig
impl StructuralPartialEq for FileClusterConfig
Auto Trait Implementations§
impl Freeze for FileClusterConfig
impl RefUnwindSafe for FileClusterConfig
impl Send for FileClusterConfig
impl Sync for FileClusterConfig
impl Unpin for FileClusterConfig
impl UnwindSafe for FileClusterConfig
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.