Skip to main content

TrackableOperation

Trait TrackableOperation 

Source
pub trait TrackableOperation {
    // Required method
    fn execute_with_progress(&self, tracker: &ProgressTracker) -> Result<()>;
}
Expand description

Helper trait for operations that can be tracked

Required Methods§

Source

fn execute_with_progress(&self, tracker: &ProgressTracker) -> Result<()>

Execute the operation with progress tracking

§Errors

Returns an error if the operation fails

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§