pub struct RunningProgressNotifier { /* private fields */ }Expand description
Notifies a RunningProgressLoop about progress
points and completion.
The notifier is cloneable so workers can share it cheaply. Sending a signal
returns false when the loop has already stopped or its receiver was
dropped.
§Examples
use qubit_progress::RunningProgressLoop;
let (_progress_loop, notifier) = RunningProgressLoop::channel();
assert!(notifier.running_point());
assert!(notifier.stop());§Author
Haixing Hu
Implementations§
Source§impl RunningProgressNotifier
impl RunningProgressNotifier
Sourcepub fn running_point(&self) -> bool
pub fn running_point(&self) -> bool
Sends a running progress point signal.
§Returns
true when the signal was sent, or false when the matching loop has
already stopped.
Trait Implementations§
Source§impl Clone for RunningProgressNotifier
impl Clone for RunningProgressNotifier
Source§fn clone(&self) -> RunningProgressNotifier
fn clone(&self) -> RunningProgressNotifier
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 moreAuto Trait Implementations§
impl Freeze for RunningProgressNotifier
impl RefUnwindSafe for RunningProgressNotifier
impl Send for RunningProgressNotifier
impl Sync for RunningProgressNotifier
impl Unpin for RunningProgressNotifier
impl UnsafeUnpin for RunningProgressNotifier
impl UnwindSafe for RunningProgressNotifier
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