Skip to main content

FirmwareUpdateProgressCallback

Type Alias FirmwareUpdateProgressCallback 

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

The progress callback type of MCUmgrClient::firmware_update.

§Arguments

  • FirmwareUpdateStep - The current step that is being executed
  • Option<(u64, u64)> - The (current, total) progress of the current step, if available.

§Return

false on error; this will cancel the update