pub fn keepalive_timeout(self, timeout: Seconds) -> Self {
        let ka_timeout = time::Duration::from(timeout);

        // register keepalive timer
        self.inner.io.start_keepalive_timer(ka_timeout);
        self.inner.ka_timeout.set(ka_timeout);

        self
    }
/// Set keep-alive timeout.
///
/// To disable timeout set value to 0.
///
/// By default keep-alive timeout is set to 30 seconds.
Set keep-alive timeout.
To disable timeout set value to 0.

By default keep-alive timeout is set to 30 seconds.
Set keep - alive timeout . To disable timeout set value to 0 . By default keep - alive timeout is set to 30 seconds .
pub fn keepalive_timeout(self, timeout: Seconds) -> Self {
        let ka_timeout = time::Duration::from(timeout);
        // register keepalive timer
        self.inner.io.start_keepalive_timer(ka_timeout);
        self.inner.ka_timeout.set(ka_timeout);
        self
    }
pub fn keepalive_timeout ( self , timeout : Seconds ) -> Self { let ka_timeout = time :: Duration :: from ( timeout ) ; // register keepalive timer self . inner . io . start_keepalive_timer ( ka_timeout ) ; self . inner . ka_timeout . set ( ka_timeout ) ; self }
Set keep-alive timeout.
Set keep - alive timeout .
self
timeout
Seconds
self
timeout
Seconds