Struct actix_settings::ActixSettings
source · pub struct ActixSettings {Show 13 fields
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,
pub tls: Tls,
}
Expand description
Settings types for Actix Web.
Fields§
§hosts: Vec<Address>
List of addresses for the server to bind to.
mode: Mode
Marker of intended deployment environment.
enable_compression: bool
True if the Compress
middleware should be enabled.
enable_log: bool
True if the Logger
middleware should be enabled.
num_workers: NumWorkers
The number of workers that the server should start.
backlog: Backlog
The maximum number of pending connections.
max_connections: MaxConnections
The per-worker maximum number of concurrent connections.
max_connection_rate: MaxConnectionRate
The per-worker maximum concurrent TLS connection limit.
keep_alive: KeepAlive
Server keep-alive preference.
client_timeout: Timeout
Timeout duration for reading client request header.
client_shutdown: Timeout
Timeout duration for connection shutdown.
shutdown_timeout: Timeout
Timeout duration for graceful worker shutdown.
tls: Tls
TLS (HTTPS) configuration.
Trait Implementations§
source§impl Clone for ActixSettings
impl Clone for ActixSettings
source§fn clone(&self) -> ActixSettings
fn clone(&self) -> ActixSettings
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ActixSettings
impl Debug for ActixSettings
source§impl<'de> Deserialize<'de> for ActixSettings
impl<'de> Deserialize<'de> for ActixSettings
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ActixSettings
impl Hash for ActixSettings
source§impl PartialEq<ActixSettings> for ActixSettings
impl PartialEq<ActixSettings> for ActixSettings
source§fn eq(&self, other: &ActixSettings) -> bool
fn eq(&self, other: &ActixSettings) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ActixSettings
impl StructuralEq for ActixSettings
impl StructuralPartialEq for ActixSettings
Auto Trait Implementations§
impl RefUnwindSafe for ActixSettings
impl Send for ActixSettings
impl Sync for ActixSettings
impl Unpin for ActixSettings
impl UnwindSafe for ActixSettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.