pub struct ProgressTracker { /* private fields */ }Implementations§
Source§impl ProgressTracker
impl ProgressTracker
pub fn println(msg: impl AsRef<str>)
pub fn eprintln(msg: impl AsRef<str>)
pub fn with_group<'a, T, F: Future<Output = T>>( name: impl Into<String>, anticipated_total: Option<usize>, f: impl FnOnce() -> F + 'a, ) -> impl Future<Output = T> + 'a
pub fn leaf<T, F: Future<Output = T>>( name: impl Into<String>, f: F, ) -> impl Future<Output = T>
pub fn rich_leaf<'a, T, F: Future<Output = T>>( name: impl Into<String>, f: impl FnOnce(Box<dyn Fn(String) + Send + Sync>) -> F + 'a, ) -> impl Future<Output = T> + 'a
pub fn progress_leaf<'a, T, F: Future<Output = T>>( name: impl Into<String>, f: impl FnOnce(Box<dyn Fn(u64) + Send + Sync>, Box<dyn Fn(String) + Send + Sync>) -> F + 'a, ) -> impl Future<Output = T> + 'a
Auto Trait Implementations§
impl Forget for ProgressTracker
impl Freeze for ProgressTrackerwhere
*const ArcInner<RwLock<MultiState>> is !null: Freeze,
PhantomData<ArcInner<RwLock<MultiState>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<BarTree>: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<ProgressBar> is !null: Freeze,
PhantomData<ArcInner<ProgressBar>>: Freeze,
PhantomData<(Arc<ProgressBar>, bool)>: Freeze,
impl Move for ProgressTracker
impl RefUnwindSafe for ProgressTrackerwhere
Atomic<usize>: RefUnwindSafe,
RwLock<MultiState>: RefUnwindSafe,
Mutex<BarState>: RefUnwindSafe,
AtomicU64: RefUnwindSafe,
AtomicU8: RefUnwindSafe,
Mutex<Option<Ticker>>: RefUnwindSafe,
impl Send for ProgressTracker
impl Sync for ProgressTracker
impl Unpin for ProgressTracker
impl UnsafeUnpin for ProgressTrackerwhere
*const ArcInner<RwLock<MultiState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<MultiState>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<BarTree>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<ProgressBar> is !null: UnsafeUnpin,
PhantomData<ArcInner<ProgressBar>>: UnsafeUnpin,
PhantomData<(Arc<ProgressBar>, bool)>: UnsafeUnpin,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].