# actix_web::server::ServerSettings - Rust
API documentation for the Rust `ServerSettings` struct in crate `actix_web`.
Keywords: rust, rustlang, rust-lang, ServerSettings

# Struct actix_web::server::ServerSettings [−] [src]

    pub struct ServerSettings { /* fields omitted */ }

Various server settings

## Methods

###

`impl ServerSettings`

[src]

####

`pub fn local_addr(&self) -> Option<SocketAddr>`

[src]

Returns the socket address of the local half of this TCP connection

####

`pub fn secure(&self) -> bool`

[src]

Returns true if connection is secure(https)

####

`pub fn host(&self) -> &str`

[src]

Returns host header value

####

`pub fn cpu_pool(&self) -> &CpuPool`

[src]

Returns default `CpuPool` for server

## Trait Implementations

###

`impl Clone for ServerSettings`

[src]

####

`fn clone(&self) -> Self`

[src]

Returns a copy of the value. Read more

####

`fn clone_from(&mut self, source: &Self)`

1.0.0
[src]

Performs copy-assignment from `source`. Read more

###

`impl Default for ServerSettings`

[src]

####

`fn default() -> Self`

[src]

Returns the "default value" for a type. Read more

## Auto Trait Implementations

###

`impl !Send for ServerSettings`

###

`impl !Sync for ServerSettings`

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)