Skip to main content

ProgressCallback

Trait ProgressCallback 

Source
pub trait ProgressCallback: Send + Sync {
    // Required method
    fn on_progress(&self, info: &ProgressInfo);
}
Expand description

Trait for progress callbacks

Required Methods§

Source

fn on_progress(&self, info: &ProgressInfo)

Called when progress is updated

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> ProgressCallback for F
where F: Fn(&ProgressInfo) + Send + Sync,

Implementation of ProgressCallback for closures