Skip to main content

BootClient

Trait BootClient 

Source
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§

Source

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).

Source

fn request_update(&mut self)

Set the boot request flag so the next reset enters the bootloader.

Source

fn system_reset(&mut self) -> !

Reset the system. This function does not return.

Implementors§