pub struct ApplicationHeartbeatHandle { /* private fields */ }Expand description
Controls one application heartbeat loop.
Dropping the handle requests cancellation and aborts only the heartbeat task; the owning WebSocket session remains alive.
Implementations§
Source§impl ApplicationHeartbeatHandle
impl ApplicationHeartbeatHandle
Sourcepub fn snapshot(&self) -> ApplicationHeartbeatSnapshot
pub fn snapshot(&self) -> ApplicationHeartbeatSnapshot
Returns a point-in-time snapshot without waiting for the loop.
Sourcepub async fn stopped(self) -> Result<ApplicationHeartbeatSnapshot>
pub async fn stopped(self) -> Result<ApplicationHeartbeatSnapshot>
Waits for the loop task to finish and returns its final snapshot.
Trait Implementations§
Source§impl Drop for ApplicationHeartbeatHandle
impl Drop for ApplicationHeartbeatHandle
Auto Trait Implementations§
impl Freeze for ApplicationHeartbeatHandle
impl RefUnwindSafe for ApplicationHeartbeatHandle
impl Send for ApplicationHeartbeatHandle
impl Sync for ApplicationHeartbeatHandle
impl Unpin for ApplicationHeartbeatHandle
impl UnsafeUnpin for ApplicationHeartbeatHandle
impl UnwindSafe for ApplicationHeartbeatHandle
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