pub struct ProgressEmitter { /* private fields */ }Implementations§
Source§impl ProgressEmitter
impl ProgressEmitter
pub fn new(sink: Option<Arc<dyn ProgressSink>>) -> Self
pub fn started(&self, operation: &str, message: &str)
pub fn progress( &self, operation: &str, current: u64, total: Option<u64>, message: &str, )
pub fn completed(&self, operation: &str, message: &str)
pub fn failed(&self, operation: &str, error: &str)
Auto Trait Implementations§
impl !RefUnwindSafe for ProgressEmitter
impl !UnwindSafe for ProgressEmitter
impl Freeze for ProgressEmitter
impl Send for ProgressEmitter
impl Sync for ProgressEmitter
impl Unpin for ProgressEmitter
impl UnsafeUnpin for ProgressEmitter
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more