#[non_exhaustive]pub enum HeartbeatWorkerOutcome {
Refreshed {
next_expiry_ms: TimestampMs,
},
NotRegistered,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Refreshed
TTL refreshed. next_expiry_ms = now + stored-ttl; callers
schedule the next heartbeat from this value.
Fields
§
next_expiry_ms: TimestampMsNotRegistered
Liveness key was absent — TTL ran out or mark_worker_dead
landed earlier. Caller re-registers, not re-heartbeats.
Trait Implementations§
Source§impl Clone for HeartbeatWorkerOutcome
impl Clone for HeartbeatWorkerOutcome
Source§fn clone(&self) -> HeartbeatWorkerOutcome
fn clone(&self) -> HeartbeatWorkerOutcome
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 HeartbeatWorkerOutcome
impl Debug for HeartbeatWorkerOutcome
Source§impl PartialEq for HeartbeatWorkerOutcome
impl PartialEq for HeartbeatWorkerOutcome
impl Copy for HeartbeatWorkerOutcome
impl Eq for HeartbeatWorkerOutcome
impl StructuralPartialEq for HeartbeatWorkerOutcome
Auto Trait Implementations§
impl Freeze for HeartbeatWorkerOutcome
impl RefUnwindSafe for HeartbeatWorkerOutcome
impl Send for HeartbeatWorkerOutcome
impl Sync for HeartbeatWorkerOutcome
impl Unpin for HeartbeatWorkerOutcome
impl UnsafeUnpin for HeartbeatWorkerOutcome
impl UnwindSafe for HeartbeatWorkerOutcome
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