Struct zircon::ZirconConfig
[−]
[src]
pub struct ZirconConfig { /* fields omitted */ }
Zircon server configuration
Methods
impl ZirconConfig
[src]
fn dev() -> ZirconConfig
[src]
The default development configuration.
fn prod() -> ZirconConfig
[src]
The default production configuration.
fn from_mode(mode: Mode) -> ZirconConfig
[src]
Choose configuration from mode.
fn with_respect_xforwarded(self, b: bool) -> ZirconConfig
[src]
When respect_xforwarded
is true, Request will respect X-Forwarded-*.
host(), port(), scheme(), and remote_addr() will respect X-Forwarded-*.
It will be useful when an application is running behind a reverse proxy.
fn with_num_accept_threads(self, n: usize) -> ZirconConfig
[src]
fn with_num_cpu_threads(self, n: usize) -> ZirconConfig
[src]
fn mode(&self) -> Mode
[src]
Server mode of the current configuration
fn num_accept_threads(&self) -> usize
[src]
fn num_cpu_threads(&self) -> usize
[src]
Trait Implementations
impl Clone for ZirconConfig
[src]
fn clone(&self) -> ZirconConfig
[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