Struct rustful::server::KeepAlive [] [src]

pub struct KeepAlive {
    pub timeout: Duration,
    pub free_threads: usize,
}

Settings for keep-alive connections to the server.

Fields

How long a keep-alive connection may idle before it's forced close.

The number of threads in the thread pool that should be kept free from idling threads. Connections will be closed if the number of idle threads goes below this.

Trait Implementations

Auto Trait Implementations

impl Send for KeepAlive

impl Sync for KeepAlive