pub struct ProgressTracker(/* private fields */);Expand description
Accumulates WorkflowEvents into a shared RunProgress. Cheap to clone
(an Arc inside); install via callback.
Implementations§
Source§impl ProgressTracker
impl ProgressTracker
Sourcepub fn snapshot(&self) -> RunProgress
pub fn snapshot(&self) -> RunProgress
A point-in-time clone of the accumulated progress.
Sourcepub fn callback(&self) -> Arc<OnWorkflowEvent> ⓘ
pub fn callback(&self) -> Arc<OnWorkflowEvent> ⓘ
An event sink that folds each WorkflowEvent into this tracker. Pass to
WorkflowCtxBuilder::on_event.
Trait Implementations§
Source§impl Clone for ProgressTracker
impl Clone for ProgressTracker
Source§fn clone(&self) -> ProgressTracker
fn clone(&self) -> ProgressTracker
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 Default for ProgressTracker
impl Default for ProgressTracker
Source§fn default() -> ProgressTracker
fn default() -> ProgressTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgressTracker
impl RefUnwindSafe for ProgressTracker
impl Send for ProgressTracker
impl Sync for ProgressTracker
impl Unpin for ProgressTracker
impl UnsafeUnpin for ProgressTracker
impl UnwindSafe for ProgressTracker
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