pub struct TcpKeepaliveConfig {
pub idle: Duration,
pub interval: Duration,
}Expand description
Idle wait time and probe interval for TCP keepalive probes; specific support depends on the running platform.
Fields§
§idle: DurationHow long after the connection is idle before sending keepalive probes, the default is 5 seconds.
interval: DurationThe time interval between consecutive keepalive probes, default 2 seconds.
Implementations§
Trait Implementations§
Source§impl Clone for TcpKeepaliveConfig
impl Clone for TcpKeepaliveConfig
Source§impl Debug for TcpKeepaliveConfig
impl Debug for TcpKeepaliveConfig
Auto Trait Implementations§
impl Forget for TcpKeepaliveConfig
impl Freeze for TcpKeepaliveConfig
impl Move for TcpKeepaliveConfig
impl RefUnwindSafe for TcpKeepaliveConfig
impl Send for TcpKeepaliveConfig
impl Sync for TcpKeepaliveConfig
impl Unpin for TcpKeepaliveConfig
impl UnsafeUnpin 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