pub struct ProgressHandle { /* private fields */ }Expand description
A shared progress handle that nodes can use to report progress, resetting the idle timeout counter.
The handle stores the last progress timestamp as milliseconds since the UNIX epoch using an atomic u64 for lock-free updates.
Implementations§
Source§impl ProgressHandle
impl ProgressHandle
Sourcepub fn report_progress(&self)
pub fn report_progress(&self)
Report progress, resetting the idle timeout counter.
Trait Implementations§
Source§impl Clone for ProgressHandle
impl Clone for ProgressHandle
Source§fn clone(&self) -> ProgressHandle
fn clone(&self) -> ProgressHandle
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 ProgressHandle
impl Debug for ProgressHandle
Auto Trait Implementations§
impl Freeze for ProgressHandle
impl RefUnwindSafe for ProgressHandle
impl Send for ProgressHandle
impl Sync for ProgressHandle
impl Unpin for ProgressHandle
impl UnsafeUnpin for ProgressHandle
impl UnwindSafe for ProgressHandle
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