pub enum KeepaliveAction {
Idle,
SendPing,
PongTimeout,
ConnectionDead,
}Expand description
The result of a keepalive check — what action to take.
Variants§
Idle
Nothing to do — connection is healthy.
SendPing
Send a keepalive ping now.
PongTimeout
A pong has timed out — count as a miss.
ConnectionDead
Too many missed pongs — declare connection dead.
Trait Implementations§
Source§impl Clone for KeepaliveAction
impl Clone for KeepaliveAction
Source§fn clone(&self) -> KeepaliveAction
fn clone(&self) -> KeepaliveAction
Returns a duplicate 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 KeepaliveAction
impl Debug for KeepaliveAction
Source§impl PartialEq for KeepaliveAction
impl PartialEq for KeepaliveAction
impl StructuralPartialEq for KeepaliveAction
Auto Trait Implementations§
impl Freeze for KeepaliveAction
impl RefUnwindSafe for KeepaliveAction
impl Send for KeepaliveAction
impl Sync for KeepaliveAction
impl Unpin for KeepaliveAction
impl UnsafeUnpin for KeepaliveAction
impl UnwindSafe for KeepaliveAction
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