pub struct TcpKeepalive {
pub idle: Duration,
pub interval: Duration,
pub count: usize,
}
Expand description
The configuration for TCP keepalive
Fields§
§idle: Duration
The time a connection needs to be idle before TCP begins sending out keep-alive probes.
interval: Duration
The number of seconds between TCP keep-alive probes.
count: usize
The maximum number of TCP keep-alive probes to send before giving up and killing the connection
Trait Implementations§
Source§impl Clone for TcpKeepalive
impl Clone for TcpKeepalive
Source§fn clone(&self) -> TcpKeepalive
fn clone(&self) -> TcpKeepalive
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 TcpKeepalive
impl Debug for TcpKeepalive
Auto Trait Implementations§
impl Freeze for TcpKeepalive
impl RefUnwindSafe for TcpKeepalive
impl Send for TcpKeepalive
impl Sync for TcpKeepalive
impl Unpin for TcpKeepalive
impl UnwindSafe for TcpKeepalive
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)