pub trait LongOperation: Send + 'static {
type Output: Send + Sync + 'static + Serialize;
// Required method
fn execute(
&self,
progress_callback: Box<dyn Fn(OperationProgress) + Send>,
cancel_flag: Arc<AtomicBool>,
) -> Result<Self::Output>;
}Required Associated Types§
Required Methods§
fn execute( &self, progress_callback: Box<dyn Fn(OperationProgress) + Send>, cancel_flag: Arc<AtomicBool>, ) -> Result<Self::Output>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".