Struct sozu_command_lib::state::ConfigState [−][src]
pub struct ConfigState { pub applications: BTreeMap<AppId, Application>, pub backends: BTreeMap<AppId, Vec<Backend>>, pub http_listeners: HashMap<SocketAddr, (HttpListener, bool)>, pub https_listeners: HashMap<SocketAddr, (HttpsListener, bool)>, pub tcp_listeners: HashMap<SocketAddr, (TcpListener, bool)>, pub http_fronts: HashMap<AppId, Vec<HttpFront>>, pub https_fronts: HashMap<AppId, Vec<HttpFront>>, pub tcp_fronts: HashMap<AppId, Vec<TcpFront>>, pub certificates: HashMap<SocketAddr, HashMap<CertFingerprint, (CertificateAndKey, Vec<String>)>>, pub http_addresses: Vec<SocketAddr>, pub https_addresses: Vec<SocketAddr>, }
Fields
applications: BTreeMap<AppId, Application>
backends: BTreeMap<AppId, Vec<Backend>>
http_listeners: HashMap<SocketAddr, (HttpListener, bool)>
the bool indicates if it is active or not
https_listeners: HashMap<SocketAddr, (HttpsListener, bool)>
tcp_listeners: HashMap<SocketAddr, (TcpListener, bool)>
http_fronts: HashMap<AppId, Vec<HttpFront>>
https_fronts: HashMap<AppId, Vec<HttpFront>>
tcp_fronts: HashMap<AppId, Vec<TcpFront>>
certificates: HashMap<SocketAddr, HashMap<CertFingerprint, (CertificateAndKey, Vec<String>)>>
http_addresses: Vec<SocketAddr>
https_addresses: Vec<SocketAddr>
Implementations
impl ConfigState
[src]
impl ConfigState
[src]pub fn new() -> ConfigState
[src]
pub fn add_http_address(&mut self, address: SocketAddr)
[src]
pub fn add_https_address(&mut self, address: SocketAddr)
[src]
pub fn handle_order(&mut self, order: &ProxyRequestData) -> bool
[src][−]
returns true if the order modified something
pub fn generate_orders(&self) -> Vec<ProxyRequestData>
[src]
pub fn generate_activate_orders(&self) -> Vec<ProxyRequestData>
[src]
pub fn diff(&self, other: &ConfigState) -> Vec<ProxyRequestData>
[src]
pub fn hash_state(&self) -> BTreeMap<AppId, u64>
[src]
pub fn application_state(&self, app_id: &str) -> QueryAnswerApplication
[src]
pub fn count_backends(&self) -> usize
[src]
pub fn count_frontends(&self) -> usize
[src]
Trait Implementations
impl Clone for ConfigState
[src]
impl Clone for ConfigState
[src]fn clone(&self) -> ConfigState
[src][−]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src][−]
impl Default for ConfigState
[src]
impl Default for ConfigState
[src]fn default() -> ConfigState
[src][−]
impl<'de> Deserialize<'de> for ConfigState
[src]
impl<'de> Deserialize<'de> for ConfigState
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src][−]
__D: Deserializer<'de>,
impl Eq for ConfigState
[src]
impl Eq for ConfigState
[src]impl PartialEq<ConfigState> for ConfigState
[src]
impl PartialEq<ConfigState> for ConfigState
[src]fn eq(&self, other: &ConfigState) -> bool
[src][−]
fn ne(&self, other: &ConfigState) -> bool
[src][−]
impl Serialize for ConfigState
[src]
impl Serialize for ConfigState
[src]impl StructuralEq for ConfigState
[src]
impl StructuralEq for ConfigState
[src]impl StructuralPartialEq for ConfigState
[src]
impl StructuralPartialEq for ConfigState
[src]Auto Trait Implementations
impl RefUnwindSafe for ConfigState
impl RefUnwindSafe for ConfigState
impl Send for ConfigState
impl Send for ConfigState
impl Sync for ConfigState
impl Sync for ConfigState
impl Unpin for ConfigState
impl Unpin for ConfigState
impl UnwindSafe for ConfigState
impl UnwindSafe for ConfigState
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self