Struct actix_web::server::ServerSettings [−][src]
pub struct ServerSettings { /* fields omitted */ }Various server settings
Methods
impl ServerSettings[src]
impl ServerSettingspub 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) -> boolReturns true if connection is secure(https)
pub fn host(&self) -> &str[src]
pub fn host(&self) -> &strReturns host header value
pub fn cpu_pool(&self) -> &CpuPool[src]
pub fn cpu_pool(&self) -> &CpuPoolReturns default CpuPool for server
Trait Implementations
impl Clone for ServerSettings[src]
impl Clone for ServerSettingsfn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns 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 ServerSettingsAuto Trait Implementations
impl !Send for ServerSettings
impl !Send for ServerSettingsimpl !Sync for ServerSettings
impl !Sync for ServerSettings