Enum actix_web::server::KeepAlive[][src]

pub enum KeepAlive {
    Timeout(usize),
    Tcp(usize),
    Os,
    Disabled,
}

Server keep-alive setting

Variants

Keep alive in seconds

Use SO_KEEPALIVE socket option, value in seconds

Relay on OS to shutdown tcp connection

Disabled

Trait Implementations

impl Debug for KeepAlive
[src]

Formats the value using the given formatter. Read more

impl PartialEq for KeepAlive
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for KeepAlive
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for KeepAlive
[src]

impl From<usize> for KeepAlive
[src]

Performs the conversion.

impl From<Option<usize>> for KeepAlive
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for KeepAlive

impl Sync for KeepAlive