Struct hyper::server::tcp::TcpKeepaliveConfig
source · struct TcpKeepaliveConfig {
time: Option<Duration>,
interval: Option<Duration>,
retries: Option<u32>,
}
Fields§
§time: Option<Duration>
§interval: Option<Duration>
§retries: Option<u32>
Implementations§
source§impl TcpKeepaliveConfig
impl TcpKeepaliveConfig
sourcefn into_socket2(self) -> Option<TcpKeepalive>
fn into_socket2(self) -> Option<TcpKeepalive>
Converts into a socket2::TcpKeealive
if there is any keep alive configuration.
fn ka_with_interval( ka: TcpKeepalive, interval: Duration, dirty: &mut bool, ) -> TcpKeepalive
fn ka_with_retries( ka: TcpKeepalive, retries: u32, dirty: &mut bool, ) -> TcpKeepalive
Trait Implementations§
source§impl Clone for TcpKeepaliveConfig
impl Clone for TcpKeepaliveConfig
source§fn clone(&self) -> TcpKeepaliveConfig
fn clone(&self) -> TcpKeepaliveConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TcpKeepaliveConfig
impl Debug for TcpKeepaliveConfig
source§impl Default for TcpKeepaliveConfig
impl Default for TcpKeepaliveConfig
source§fn default() -> TcpKeepaliveConfig
fn default() -> TcpKeepaliveConfig
Returns the “default value” for a type. Read more
impl Copy for TcpKeepaliveConfig
Auto Trait Implementations§
impl Freeze for TcpKeepaliveConfig
impl RefUnwindSafe for TcpKeepaliveConfig
impl Send for TcpKeepaliveConfig
impl Sync for TcpKeepaliveConfig
impl Unpin for TcpKeepaliveConfig
impl UnwindSafe for TcpKeepaliveConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more