pub struct ProgressWithStop<S, R> {
pub stop: S,
pub report: R,
}Expand description
A stop policy and a progress sink used as one value.
check goes to stop and advance goes to report, so the pair works
wherever Stop + Report is expected, including
ProgressExt::step. ProgressWithStop::new(Unstoppable, NoReport)
is zero-sized.
Fields§
§stop: SThe cancellation policy.
report: RThe completed-work sink.
Implementations§
Source§impl<S, R> ProgressWithStop<S, R>
impl<S, R> ProgressWithStop<S, R>
Trait Implementations§
impl<S: Copy, R: Copy> Copy for ProgressWithStop<S, R>
impl<S: Eq, R: Eq> Eq for ProgressWithStop<S, R>
impl<S: PartialEq, R: PartialEq> StructuralPartialEq for ProgressWithStop<S, R>
Auto Trait Implementations§
impl<S, R> Freeze for ProgressWithStop<S, R>
impl<S, R> RefUnwindSafe for ProgressWithStop<S, R>where
S: RefUnwindSafe,
R: RefUnwindSafe,
impl<S, R> Send for ProgressWithStop<S, R>
impl<S, R> Sync for ProgressWithStop<S, R>
impl<S, R> Unpin for ProgressWithStop<S, R>
impl<S, R> UnsafeUnpin for ProgressWithStop<S, R>where
S: UnsafeUnpin,
R: UnsafeUnpin,
impl<S, R> UnwindSafe for ProgressWithStop<S, R>where
S: UnwindSafe,
R: UnwindSafe,
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