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]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for KeepAlive
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for KeepAlive
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for KeepAlive
[src]

impl From<usize> for KeepAlive
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for KeepAlive

impl Sync for KeepAlive