pub struct ChainProgress {
pub total_steps: usize,
pub current_step: Option<usize>,
pub current_step_name: Option<String>,
pub current_step_partial_output: Option<String>,
pub current_step_started_at: Option<u64>,
pub completed_steps: Vec<StepResult>,
pub status: ChainStatus,
}Expand description
Progress of an in-flight chain.
Fields§
§total_steps: usizeTotal number of steps.
current_step: Option<usize>Index of the currently running step (0-based), or None if done.
current_step_name: Option<String>Name of the currently running step.
current_step_partial_output: Option<String>Live partial output from the currently running step.
Updated incrementally as streaming output arrives. None when
no step is running (chain completed or not yet started).
current_step_started_at: Option<u64>Unix timestamp (seconds) when the current step started.
Callers can compute elapsed time as now - started_at.
completed_steps: Vec<StepResult>Completed step results so far.
status: ChainStatusOverall status.
Trait Implementations§
Source§impl Clone for ChainProgress
impl Clone for ChainProgress
Source§fn clone(&self) -> ChainProgress
fn clone(&self) -> ChainProgress
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 ChainProgress
impl Debug for ChainProgress
Source§impl<'de> Deserialize<'de> for ChainProgress
impl<'de> Deserialize<'de> for ChainProgress
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 ChainProgress
impl RefUnwindSafe for ChainProgress
impl Send for ChainProgress
impl Sync for ChainProgress
impl Unpin for ChainProgress
impl UnsafeUnpin for ChainProgress
impl UnwindSafe for ChainProgress
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