pub struct WorkerStatusAck {
pub next_ttl_secs: u32,
}Expand description
Ack for a WorkerStatusReport. Carries the next-TTL so the
worker can adapt its heartbeat cadence.
Fields§
§next_ttl_secs: u32Seconds until the worker’s next required heartbeat. The leader
computes this adaptively from cluster size:
clamp(N_workers / max_hb_per_sec, min, max).
Trait Implementations§
Source§impl Clone for WorkerStatusAck
impl Clone for WorkerStatusAck
Source§fn clone(&self) -> WorkerStatusAck
fn clone(&self) -> WorkerStatusAck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkerStatusAck
impl Debug for WorkerStatusAck
Source§impl<'de> Deserialize<'de> for WorkerStatusAck
impl<'de> Deserialize<'de> for WorkerStatusAck
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WorkerStatusAck
impl RefUnwindSafe for WorkerStatusAck
impl Send for WorkerStatusAck
impl Sync for WorkerStatusAck
impl Unpin for WorkerStatusAck
impl UnsafeUnpin for WorkerStatusAck
impl UnwindSafe for WorkerStatusAck
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