pub struct Keepalive {
pub idle: Duration,
pub interval: Duration,
pub count: u32,
}Expand description
Keepalive probes: idle time before the first, interval between them, and count.
let k = net_io::Keepalive::DEFAULT;
assert_eq!(k.count, 6);Fields§
§idle: DurationIdle time before the first probe.
interval: DurationTime between probes.
count: u32Probes before the connection is dropped.
Implementations§
Trait Implementations§
impl Copy for Keepalive
impl Eq for Keepalive
impl StructuralPartialEq for Keepalive
Auto Trait Implementations§
impl Freeze for Keepalive
impl RefUnwindSafe for Keepalive
impl Send for Keepalive
impl Sync for Keepalive
impl Unpin for Keepalive
impl UnsafeUnpin for Keepalive
impl UnwindSafe for Keepalive
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