pub struct StatusReporter { /* private fields */ }Expand description
Status reporter for providing real-time workflow status updates
Implementations§
Source§impl StatusReporter
impl StatusReporter
Sourcepub fn record_step_duration(&self, duration_ms: u64)
pub fn record_step_duration(&self, duration_ms: u64)
Record a step duration
Sourcepub fn get_status(&self, state: &WorkflowState) -> StatusReport
pub fn get_status(&self, state: &WorkflowState) -> StatusReport
Get current status report
Sourcepub fn get_last_status(&self) -> Option<StatusReport>
pub fn get_last_status(&self) -> Option<StatusReport>
Get last reported status
Sourcepub fn get_average_step_duration(&self) -> Option<u64>
pub fn get_average_step_duration(&self) -> Option<u64>
Get average step duration
Sourcepub fn get_min_step_duration(&self) -> Option<u64>
pub fn get_min_step_duration(&self) -> Option<u64>
Get minimum step duration
Sourcepub fn get_max_step_duration(&self) -> Option<u64>
pub fn get_max_step_duration(&self) -> Option<u64>
Get maximum step duration
Sourcepub fn format_status(&self, state: &WorkflowState) -> String
pub fn format_status(&self, state: &WorkflowState) -> String
Format status report as a human-readable string
Trait Implementations§
Source§impl Clone for StatusReporter
impl Clone for StatusReporter
Source§fn clone(&self) -> StatusReporter
fn clone(&self) -> StatusReporter
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 moreAuto Trait Implementations§
impl Freeze for StatusReporter
impl RefUnwindSafe for StatusReporter
impl Send for StatusReporter
impl Sync for StatusReporter
impl Unpin for StatusReporter
impl UnwindSafe for StatusReporter
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