pub struct NativeTaskLiveness {
pub start: NativeTaskStart,
pub renewal_started_at: Option<DateTime<Utc>>,
}Expand description
A heartbeat is a successful renewal attempted after this exact Task entered. It measures owner liveness independently of the Task’s progress.
Fields§
§start: NativeTaskStart§renewal_started_at: Option<DateTime<Utc>>Implementations§
Source§impl NativeTaskLiveness
impl NativeTaskLiveness
pub fn heartbeat_at_ms(&self) -> Option<u64>
Trait Implementations§
Source§impl Clone for NativeTaskLiveness
impl Clone for NativeTaskLiveness
Auto Trait Implementations§
impl Freeze for NativeTaskLiveness
impl RefUnwindSafe for NativeTaskLiveness
impl Send for NativeTaskLiveness
impl Sync for NativeTaskLiveness
impl Unpin for NativeTaskLiveness
impl UnsafeUnpin for NativeTaskLiveness
impl UnwindSafe for NativeTaskLiveness
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