pub trait ProgressSink: Send {
// Required method
fn on_event(&mut self, event: DiffEvent);
}Expand description
Trait for receiving progress events.
A blanket impl covers any FnMut(DiffEvent) + Send closure, so callers can
pass a bare closure at call sites without boilerplate (RFC-012).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".