Skip to main content

ProgressCallback

Type Alias ProgressCallback 

Source
pub type ProgressCallback = Box<dyn FnMut(u64, u64) + Send>;
Expand description

Full install flow. Dispatches to the right strategy based on the detected install method.

progress is an optional callback invoked with (downloaded_bytes, total_bytes) as bytes stream in, so the UI can render a progress bar. Called at most every ~256 KB.

Aliased Typeยง

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