[−][src]Struct sozu_command_lib::state::ConfigState
Fields
applications: HashMap<AppId, Application>
backends: HashMap<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]
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]
pub fn clone(&self) -> ConfigState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ConfigState
[src]
impl Default for ConfigState
[src]
pub fn default() -> ConfigState
[src]
impl<'de> Deserialize<'de> for ConfigState
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for ConfigState
[src]
impl PartialEq<ConfigState> for ConfigState
[src]
pub fn eq(&self, other: &ConfigState) -> bool
[src]
pub fn ne(&self, other: &ConfigState) -> bool
[src]
impl Serialize for ConfigState
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for ConfigState
[src]
impl StructuralPartialEq for ConfigState
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConfigState
[src]
impl Send for ConfigState
[src]
impl Sync for ConfigState
[src]
impl Unpin for ConfigState
[src]
impl UnwindSafe for ConfigState
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Reset for T where
T: Clone + Default,
[src]
T: Clone + Default,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,