Enum actix_http::KeepAlive
source · [−]pub enum KeepAlive {
Timeout(Duration),
Os,
Disabled,
}Expand description
Connection keep-alive config.
Variants
Timeout(Duration)
Keep-alive duration.
KeepAlive::Timeout(Duration::ZERO) is mapped to KeepAlive::Disabled.
Os
Rely on OS to shutdown TCP connection.
Some defaults can be very long, check your OS documentation.
Disabled
Keep-alive is disabled.
Connections will be closed immediately.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeepAlive
impl UnwindSafe for KeepAlive
Blanket Implementations
Mutably borrows from an owned value. Read more
