Skip to main content

ProgressCallback

Type Alias ProgressCallback 

Source
pub type ProgressCallback = Box<dyn FnMut(ProgressEvent) -> bool + Send>;
Expand description

Callback type invoked after each block completes.

Returning false signals cancellation. The engine halts at the next block boundary, discards partial output, and returns CrushError::Cancelled.

Aliased Typeยง

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