Struct sozu_command_lib::config::Config [−][src]
pub struct Config {
pub config_path: String,
pub command_socket: String,
pub command_buffer_size: usize,
pub max_command_buffer_size: usize,
pub max_connections: usize,
pub max_buffers: usize,
pub buffer_size: usize,
pub saved_state: Option<String>,
pub log_level: String,
pub log_target: String,
pub log_access_target: Option<String>,
pub worker_count: u16,
pub worker_automatic_restart: bool,
pub metrics: Option<MetricsConfig>,
pub http_listeners: Vec<HttpListener>,
pub https_listeners: Vec<HttpsListener>,
pub tcp_listeners: Vec<TcpListener>,
pub applications: HashMap<String, AppConfig>,
pub handle_process_affinity: bool,
pub ctl_command_timeout: u64,
pub pid_file_path: Option<String>,
pub tls_provider: TlsProvider,
pub activate_listeners: bool,
pub front_timeout: u32,
pub zombie_check_interval: u32,
pub accept_queue_timeout: u32,
}Fields
config_path: String
command_socket: String
command_buffer_size: usize
max_command_buffer_size: usize
max_connections: usize
max_buffers: usize
buffer_size: usize
saved_state: Option<String>
log_level: String
log_target: String
log_access_target: Option<String>
worker_count: u16
worker_automatic_restart: bool
metrics: Option<MetricsConfig>
http_listeners: Vec<HttpListener>
https_listeners: Vec<HttpsListener>
tcp_listeners: Vec<TcpListener>
applications: HashMap<String, AppConfig>
handle_process_affinity: bool
ctl_command_timeout: u64
pid_file_path: Option<String>
tls_provider: TlsProvider
activate_listeners: bool
front_timeout: u32
zombie_check_interval: u32
accept_queue_timeout: u32
Methods
impl Config[src]
impl Configpub fn load_from_path(path: &str) -> Result<Config>[src]
pub fn load_from_path(path: &str) -> Result<Config>pub fn generate_config_messages(&self) -> Vec<CommandRequest>[src]
pub fn generate_config_messages(&self) -> Vec<CommandRequest>pub fn command_socket_path(&self) -> String[src]
pub fn command_socket_path(&self) -> Stringpub fn saved_state_path(&self) -> Option<String>[src]
pub fn saved_state_path(&self) -> Option<String>pub fn load_file(path: &str) -> Result<String>[src]
pub fn load_file(path: &str) -> Result<String>pub fn load_file_bytes(path: &str) -> Result<Vec<u8>>[src]
pub fn load_file_bytes(path: &str) -> Result<Vec<u8>>Trait Implementations
impl Debug for Config[src]
impl Debug for Configfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Config[src]
impl Clone for Configfn clone(&self) -> Config[src]
fn clone(&self) -> ConfigReturns 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 Config[src]
impl PartialEq for Configfn eq(&self, other: &Config) -> bool[src]
fn eq(&self, other: &Config) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Config) -> bool[src]
fn ne(&self, other: &Config) -> boolThis method tests for !=.
impl Eq for Config[src]
impl Eq for Config