Enum actix_web::server::KeepAlive
[−]
[src]
pub enum KeepAlive { Timeout(usize), Tcp(usize), Os, Disabled, }
Server keep-alive setting
Variants
Timeout(usize)
Keep alive in seconds
Tcp(usize)
Use SO_KEEPALIVE
socket option, value in seconds
Os
Relay on OS to shutdown tcp connection
Disabled
Disabled
Trait Implementations
impl Debug for KeepAlive
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for KeepAlive
[src]
fn eq(&self, __arg_0: &KeepAlive) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &KeepAlive) -> bool
[src]
This method tests for !=
.
impl Clone for KeepAlive
[src]
fn clone(&self) -> KeepAlive
[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