Struct sozu_command_lib::state::ConfigState [−][src]
pub struct ConfigState { pub applications: HashMap<AppId, Application>, pub backends: HashMap<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<HttpsFront>>, 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: HashMap<AppId, Application>
backends: HashMap<AppId, Vec<Backend>>
http_listeners: HashMap<SocketAddr, (HttpListener, bool)>
https_listeners: HashMap<SocketAddr, (HttpsListener, bool)>
tcp_listeners: HashMap<SocketAddr, (TcpListener, bool)>
http_fronts: HashMap<AppId, Vec<HttpFront>>
https_fronts: HashMap<AppId, Vec<HttpsFront>>
tcp_fronts: HashMap<AppId, Vec<TcpFront>>
certificates: HashMap<SocketAddr, HashMap<CertFingerprint, (CertificateAndKey, Vec<String>)>>
http_addresses: Vec<SocketAddr>
https_addresses: Vec<SocketAddr>
Methods
impl ConfigState
[src]
impl ConfigState
pub fn new() -> ConfigState
[src]
pub fn new() -> ConfigState
pub fn add_http_address(&mut self, address: SocketAddr)
[src]
pub fn add_http_address(&mut self, address: SocketAddr)
pub fn add_https_address(&mut self, address: SocketAddr)
[src]
pub fn add_https_address(&mut self, address: SocketAddr)
pub fn handle_order(&mut self, order: &Order) -> bool
[src]
pub fn handle_order(&mut self, order: &Order) -> bool
returns true if the order modified something
pub fn generate_orders(&self) -> Vec<Order>
[src]
pub fn generate_orders(&self) -> Vec<Order>
pub fn diff(&self, other: &ConfigState) -> Vec<Order>
[src]
pub fn diff(&self, other: &ConfigState) -> Vec<Order>
pub fn hash_state(&self) -> BTreeMap<AppId, u64>
[src]
pub fn hash_state(&self) -> BTreeMap<AppId, u64>
pub fn application_state(&self, app_id: &str) -> QueryAnswerApplication
[src]
pub fn application_state(&self, app_id: &str) -> QueryAnswerApplication
pub fn count_backends(&self) -> usize
[src]
pub fn count_backends(&self) -> usize
pub fn count_frontends(&self) -> usize
[src]
pub fn count_frontends(&self) -> usize
Trait Implementations
impl Debug for ConfigState
[src]
impl Debug for ConfigState
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for ConfigState
[src]
impl Default for ConfigState
fn default() -> ConfigState
[src]
fn default() -> ConfigState
Returns the "default value" for a type. Read more
impl Clone for ConfigState
[src]
impl Clone for ConfigState
fn clone(&self) -> ConfigState
[src]
fn clone(&self) -> ConfigState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ConfigState
[src]
impl PartialEq for ConfigState
fn eq(&self, other: &ConfigState) -> bool
[src]
fn eq(&self, other: &ConfigState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ConfigState) -> bool
[src]
fn ne(&self, other: &ConfigState) -> bool
This method tests for !=
.
impl Eq for ConfigState
[src]
impl Eq for ConfigState
Auto Trait Implementations
impl Send for ConfigState
impl Send for ConfigState
impl Sync for ConfigState
impl Sync for ConfigState