Struct actix_web::server::ServerSettings [−][src]
pub struct ServerSettings { /* fields omitted */ }
Various server settings
Methods
impl ServerSettings
[src]
impl ServerSettings
pub fn local_addr(&self) -> Option<SocketAddr>
[src]
pub fn local_addr(&self) -> Option<SocketAddr>
Returns the socket address of the local half of this TCP connection
pub fn secure(&self) -> bool
[src]
pub fn secure(&self) -> bool
Returns true if connection is secure(https)
pub fn host(&self) -> &str
[src]
pub fn host(&self) -> &str
Returns host header value
pub fn cpu_pool(&self) -> &CpuPool
[src]
pub fn cpu_pool(&self) -> &CpuPool
Returns default CpuPool
for server
Trait Implementations
impl Clone for ServerSettings
[src]
impl Clone for ServerSettings
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns 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 Default for ServerSettings
[src]
impl Default for ServerSettings
Auto Trait Implementations
impl !Send for ServerSettings
impl !Send for ServerSettings
impl !Sync for ServerSettings
impl !Sync for ServerSettings