struct KeepAlive {
interval: Duration,
timeout: Duration,
while_idle: bool,
state: KeepAliveState,
timer: Pin<Box<Sleep>>,
}
Fields§
§interval: Duration
If no frames are received in this amount of time, a PING frame is sent.
timeout: Duration
After sending a keepalive PING, the connection will be closed if a pong is not received in this amount of time.
while_idle: bool
If true, sends pings even when there are no active streams.
state: KeepAliveState
§timer: Pin<Box<Sleep>>
Implementations§
Auto Trait Implementations§
impl Freeze for KeepAlive
impl !RefUnwindSafe for KeepAlive
impl Send for KeepAlive
impl Sync for KeepAlive
impl Unpin 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