Skip to main content

ProgressObserver

Trait ProgressObserver 

Source
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§

Source

fn step(&self, progress: StepProgress)

Provided Methods§

Source

fn admitted(&self)

Admission was acquired; this decision is no longer queued.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§