Skip to main content

ProgressCallback

Type Alias ProgressCallback 

Source
pub type ProgressCallback = Box<dyn Fn(&Progress) -> bool + Send>;
Expand description

Callback invoked on every processed frame to report progress.

The closure receives a Progress reference and must return true to continue processing or false to request cancellation. When false is returned, Pipeline::run stops at the next frame boundary and returns PipelineError::Cancelled.

Aliased Typeยง

pub struct ProgressCallback(/* private fields */);