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 ConfigStatepub fn new() -> ConfigState[src]
pub fn new() -> ConfigStatepub 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: &ProxyRequestData) -> bool[src]
pub fn handle_order(&mut self, order: &ProxyRequestData) -> boolreturns true if the order modified something
pub fn generate_orders(&self) -> Vec<ProxyRequestData>[src]
pub fn generate_orders(&self) -> Vec<ProxyRequestData>pub fn generate_activate_orders(&self) -> Vec<ProxyRequestData>[src]
pub fn generate_activate_orders(&self) -> Vec<ProxyRequestData>pub fn diff(&self, other: &ConfigState) -> Vec<ProxyRequestData>[src]
pub fn diff(&self, other: &ConfigState) -> Vec<ProxyRequestData>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) -> QueryAnswerApplicationpub fn count_backends(&self) -> usize[src]
pub fn count_backends(&self) -> usizepub fn count_frontends(&self) -> usize[src]
pub fn count_frontends(&self) -> usizeTrait Implementations
impl Debug for ConfigState[src]
impl Debug for ConfigStatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for ConfigState[src]
impl Default for ConfigStatefn default() -> ConfigState[src]
fn default() -> ConfigStateReturns the "default value" for a type. Read more
impl Clone for ConfigState[src]
impl Clone for ConfigStatefn clone(&self) -> ConfigState[src]
fn clone(&self) -> ConfigStateReturns 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 ConfigStatefn eq(&self, other: &ConfigState) -> bool[src]
fn eq(&self, other: &ConfigState) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for ConfigState[src]
impl Eq for ConfigStateAuto Trait Implementations
impl Send for ConfigState
impl Send for ConfigStateimpl Sync for ConfigState
impl Sync for ConfigState