pub struct WorkerHealth {
pub worker_id: usize,
pub last_heartbeat: DateTime<Utc>,
pub error_count: usize,
pub status: WorkerStatus,
pub current_work_item: Option<String>,
pub current_work_item_run_id: Option<String>,
}Expand description
Health and status information for a workflow worker.
Fields§
§worker_id: usizeUnique worker ID.
last_heartbeat: DateTime<Utc>Timestamp of the last heartbeat.
error_count: usizeNumber of errors encountered by this worker.
status: WorkerStatusOptional custom status string (e.g., “in progress”, “permanently failed”).
current_work_item: Option<String>Worker’s current work item.
current_work_item_run_id: Option<String>Worker’s current work item’s run ID.
Trait Implementations§
Source§impl Clone for WorkerHealth
impl Clone for WorkerHealth
Source§fn clone(&self) -> WorkerHealth
fn clone(&self) -> WorkerHealth
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 WorkerHealth
impl Debug for WorkerHealth
Source§impl Default for WorkerHealth
impl Default for WorkerHealth
Source§impl<'de> Deserialize<'de> for WorkerHealth
impl<'de> Deserialize<'de> for WorkerHealth
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 WorkerHealth
impl RefUnwindSafe for WorkerHealth
impl Send for WorkerHealth
impl Sync for WorkerHealth
impl Unpin for WorkerHealth
impl UnwindSafe for WorkerHealth
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