Struct sozu_command_lib::state::ConfigState
[−]
[src]
pub struct ConfigState {
pub applications: HashMap<AppId, Application>,
pub instances: HashMap<AppId, Vec<Instance>>,
pub http_fronts: HashMap<AppId, Vec<HttpFront>>,
pub https_fronts: HashMap<AppId, Vec<HttpsFront>>,
pub certificates: HashMap<CertFingerprint, CertificateAndKey>,
pub http_addresses: Vec<(String, u16)>,
pub https_addresses: Vec<(String, u16)>,
}Fields
applications: HashMap<AppId, Application>
instances: HashMap<AppId, Vec<Instance>>
http_fronts: HashMap<AppId, Vec<HttpFront>>
https_fronts: HashMap<AppId, Vec<HttpsFront>>
certificates: HashMap<CertFingerprint, CertificateAndKey>
http_addresses: Vec<(String, u16)>
https_addresses: Vec<(String, u16)>
Methods
impl ConfigState[src]
fn new() -> ConfigState[src]
fn add_http_address(&mut self, ip_address: String, port: u16)[src]
fn add_https_address(&mut self, ip_address: String, port: u16)[src]
fn handle_order(&mut self, order: &Order)[src]
fn generate_orders(&self) -> Vec<Order>[src]
fn diff(&self, other: &ConfigState) -> Vec<Order>[src]
fn hash_state(&self) -> BTreeMap<AppId, u64>[src]
fn application_state(&self, app_id: &str) -> QueryAnswerApplication[src]
Trait Implementations
impl Debug for ConfigState[src]
impl Default for ConfigState[src]
fn default() -> ConfigState[src]
Returns the "default value" for a type. Read more
impl Clone for ConfigState[src]
fn clone(&self) -> ConfigState[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for ConfigState[src]
fn eq(&self, __arg_0: &ConfigState) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConfigState) -> bool[src]
This method tests for !=.