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§
Sourcefn sideload(&mut self, auto_reboot: bool)
fn sideload(&mut self, auto_reboot: bool)
Invoked when the “sideload” or “sideload_auto_reboot” recovery action is encountered.
Sourcefn prompt_and_wipe_data(&mut self, reason: Option<&str>)
fn prompt_and_wipe_data(&mut self, reason: Option<&str>)
Invoked when the “prompt_and_wipe_data” recovery action is encountered.