pub struct NoOpProgressReporter;Expand description
No-op progress reporter for when progress reporting is disabled
Trait Implementations§
Source§impl ProgressReporter for NoOpProgressReporter
impl ProgressReporter for NoOpProgressReporter
Source§fn start<'life0, 'life1, 'async_trait>(
&'life0 self,
_message: &'life1 str,
_total: Option<u64>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start<'life0, 'life1, 'async_trait>(
&'life0 self,
_message: &'life1 str,
_total: Option<u64>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Start a new progress operation
Source§fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
_position: u64,
_message: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
_position: u64,
_message: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update progress with current position
Source§fn increment<'life0, 'async_trait>(
&'life0 self,
_delta: u64,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn increment<'life0, 'async_trait>(
&'life0 self,
_delta: u64,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Increment progress by a delta
Source§fn finish<'life0, 'life1, 'async_trait>(
&'life0 self,
_message: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn finish<'life0, 'life1, 'async_trait>(
&'life0 self,
_message: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Finish the progress operation
Auto Trait Implementations§
impl Freeze for NoOpProgressReporter
impl RefUnwindSafe for NoOpProgressReporter
impl Send for NoOpProgressReporter
impl Sync for NoOpProgressReporter
impl Unpin for NoOpProgressReporter
impl UnwindSafe for NoOpProgressReporter
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