pub struct ProgressMonitor { /* private fields */ }
Expand description
Progress monitor
Implementations§
Source§impl ProgressMonitor
impl ProgressMonitor
Sourcepub fn set_callback(&mut self, callback: ProgressCallback)
pub fn set_callback(&mut self, callback: ProgressCallback)
Set progress callback
Sourcepub fn cancellation_token(&self) -> CancellationToken
pub fn cancellation_token(&self) -> CancellationToken
Get cancellation token
Sourcepub fn set_stage(&mut self, stage: ExportStage)
pub fn set_stage(&mut self, stage: ExportStage)
Set current stage
Sourcepub fn update_progress(&mut self, stage_progress: f64, _details: Option<String>)
pub fn update_progress(&mut self, stage_progress: f64, _details: Option<String>)
Update stage progress
Sourcepub fn add_processed(&self, count: usize)
pub fn add_processed(&self, count: usize)
Add processed allocation count
Sourcepub fn set_processed(&self, count: usize)
pub fn set_processed(&self, count: usize)
Set processed allocation count
Sourcepub fn should_cancel(&self) -> bool
pub fn should_cancel(&self) -> bool
Check if should cancel
Sourcepub fn get_progress_snapshot(&self) -> ExportProgress
pub fn get_progress_snapshot(&self) -> ExportProgress
Get current progress snapshot
Auto Trait Implementations§
impl Freeze for ProgressMonitor
impl !RefUnwindSafe for ProgressMonitor
impl Send for ProgressMonitor
impl Sync for ProgressMonitor
impl Unpin for ProgressMonitor
impl !UnwindSafe for ProgressMonitor
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
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