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 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
§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].