Skip to main content

RecoveryActionHandler

Trait RecoveryActionHandler 

Source
pub trait RecoveryActionHandler {
    // Required methods
    fn wipe_data(&mut self);
    fn sideload(&mut self, auto_reboot: bool);
    fn prompt_and_wipe_data(&mut self, reason: Option<&str>);
    fn other(&mut self, arg: &str, reason: Option<&str>);
}
Expand description

Handler for actions which are specified in the bootloader recovery message.

Required Methods§

Source

fn wipe_data(&mut self)

Invoked when the “wipe_data” recovery action is encountered.

Source

fn sideload(&mut self, auto_reboot: bool)

Invoked when the “sideload” or “sideload_auto_reboot” recovery action is encountered.

Source

fn prompt_and_wipe_data(&mut self, reason: Option<&str>)

Invoked when the “prompt_and_wipe_data” recovery action is encountered.

Source

fn other(&mut self, arg: &str, reason: Option<&str>)

Invoked when an unknown recovery action is encountered.

Implementors§