Struct sozu_command_lib::config::FileAppConfig [−][src]
pub struct FileAppConfig { pub frontends: Vec<FileAppFrontendConfig>, pub backends: Vec<BackendConfig>, pub protocol: FileAppProtocolConfig, 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<FileAppFrontendConfig>
backends: Vec<BackendConfig>
protocol: FileAppProtocolConfig
sticky_session: Option<bool>
https_redirect: Option<bool>
send_proxy: Option<bool>
load_balancing: LoadBalancingAlgorithms
answer_503: Option<String>
load_metric: Option<LoadMetric>
Implementations
pub fn to_app_config(
self,
app_id: &str,
expect_proxy: &HashSet<SocketAddr>
) -> Result<AppConfig, String>
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FileAppConfig
impl Send for FileAppConfig
impl Sync for FileAppConfig
impl Unpin for FileAppConfig
impl UnwindSafe for FileAppConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self