pub trait BootClient {
// Required methods
fn confirm(&mut self);
fn request_update(&mut self);
fn system_reset(&mut self) -> !;
}Expand description
App-side boot client interface.
Provides the operations an application needs from the bootloader: confirming a successful trial boot, requesting bootloader entry for a firmware update, and performing a system reset.
Required Methods§
Sourcefn confirm(&mut self)
fn confirm(&mut self)
Confirm a successful boot.
If the boot state is Validating, refreshes metadata back to Idle.
Otherwise does nothing (already confirmed or no update in progress).
Sourcefn request_update(&mut self)
fn request_update(&mut self)
Set the boot request flag so the next reset enters the bootloader.
Sourcefn system_reset(&mut self) -> !
fn system_reset(&mut self) -> !
Reset the system. This function does not return.