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

returns true if the order modified something

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.