Skip to main content

FirmwareUpdateProgressCallback

Type Alias FirmwareUpdateProgressCallback 

Source
pub type FirmwareUpdateProgressCallback<'a> = dyn FnMut(&str, Option<(u64, u64)>) -> bool + 'a;
Expand description

The progress callback type of MCUmgrClient::firmware_update.

§Arguments

  • &str - Human readable description of the current step
  • Option<(u64, u64)> - The (current, total) progress of the current step, if available.

§Return

false on error; this will cancel the update