pub trait ProgressSink: Send + Sync {
// Required method
fn on_rung(&self, update: RungProgress);
// Provided method
fn on_event(&self, _event: JobEvent) { ... }
}Expand description
Receiver for job progress. Implement to consume updates; or use
channel_sink / fn_sink for the common cases.
Required Methods§
Sourcefn on_rung(&self, update: RungProgress)
fn on_rung(&self, update: RungProgress)
Called with a fresh RungProgress each time a rung advances.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".