use serde::Deserialize;
mod address;
mod backlog;
mod keep_alive;
mod max_connection_rate;
mod max_connections;
mod mode;
mod num_workers;
mod timeout;
#[cfg(any(feature = "openssl", feature = "rustls-0_23"))]
mod tls;
#[cfg(any(feature = "openssl", feature = "rustls-0_23"))]
pub use self::tls::Tls;
pub use self::{
address::Address, backlog::Backlog, keep_alive::KeepAlive,
max_connection_rate::MaxConnectionRate, max_connections::MaxConnections, mode::Mode,
num_workers::NumWorkers, timeout::Timeout,
};
#[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub struct ActixSettings {
pub hosts: Vec<Address>,
pub mode: Mode,
pub enable_compression: bool,
pub enable_log: bool,
pub num_workers: NumWorkers,
pub backlog: Backlog,
pub max_connections: MaxConnections,
pub max_connection_rate: MaxConnectionRate,
pub keep_alive: KeepAlive,
pub client_timeout: Timeout,
pub client_shutdown: Timeout,
pub shutdown_timeout: Timeout,
#[cfg(any(feature = "openssl", feature = "rustls-0_23"))]
pub tls: Tls,
}