pub struct TaskHealthEntry {
pub task_name: String,
pub state: String,
pub retry_count: u32,
pub last_error: Option<String>,
pub avg_duration_secs: f64,
pub healthy: bool,
}Expand description
Per-task health record for dashboard display.
Fields§
§task_name: StringTask name.
state: StringCurrent state.
retry_count: u32Number of retry attempts so far.
last_error: Option<String>Last error message, if any.
avg_duration_secs: f64Average duration in seconds over recent runs.
healthy: boolWhether the task is considered healthy (no errors, low retry count).
Implementations§
Trait Implementations§
Source§impl Clone for TaskHealthEntry
impl Clone for TaskHealthEntry
Source§fn clone(&self) -> TaskHealthEntry
fn clone(&self) -> TaskHealthEntry
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 TaskHealthEntry
impl Debug for TaskHealthEntry
Source§impl<'de> Deserialize<'de> for TaskHealthEntry
impl<'de> Deserialize<'de> for TaskHealthEntry
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 TaskHealthEntry
impl RefUnwindSafe for TaskHealthEntry
impl Send for TaskHealthEntry
impl Sync for TaskHealthEntry
impl Unpin for TaskHealthEntry
impl UnsafeUnpin for TaskHealthEntry
impl UnwindSafe for TaskHealthEntry
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