pub struct HeartbeatPayload {
pub worker_id: String,
pub active_tasks: u32,
pub capacity: u32,
pub uptime_seconds: u64,
}Expand description
Heartbeat data sent periodically by workers to indicate liveness.
Fields§
§worker_id: String§active_tasks: u32§capacity: u32§uptime_seconds: u64Trait Implementations§
Source§impl Clone for HeartbeatPayload
impl Clone for HeartbeatPayload
Source§fn clone(&self) -> HeartbeatPayload
fn clone(&self) -> HeartbeatPayload
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 HeartbeatPayload
impl Debug for HeartbeatPayload
Source§impl<'de> Deserialize<'de> for HeartbeatPayload
impl<'de> Deserialize<'de> for HeartbeatPayload
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 HeartbeatPayload
impl RefUnwindSafe for HeartbeatPayload
impl Send for HeartbeatPayload
impl Sync for HeartbeatPayload
impl Unpin for HeartbeatPayload
impl UnsafeUnpin for HeartbeatPayload
impl UnwindSafe for HeartbeatPayload
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