pub trait ProgressObserver: Send + Sync {
// Required method
fn step(&self, progress: StepProgress);
// Provided method
fn admitted(&self) { ... }
}Expand description
Synchronous, non-blocking callbacks. Implementations must perform no I/O, acquire no contended locks, and never wait for a consumer. Panics are counted and contained by the runtime. Observation cannot alter evidence.
Required Methods§
fn step(&self, progress: StepProgress)
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".