/// Checks whether fdr policy allows factory reset to be performed. If not, then it will not
/// move forward with the reset. If it is, then it will forward the message to begin reset.
Checks whether fdr policy allows factory reset to be performed. If not, then it will not
move forward with the reset. If it is, then it will forward the message to begin reset.
Checks whether fdr policy allows factory reset to be performed . If not then it will not move forward with the reset . If it is then it will forward the message to begin reset .
async fn check_fdr_and_maybe_reset(view_key: ViewKey, app_sender: AppSender, check_id: usize) {
        let fdr_enabled = check_fdr_enabled().await.unwrap_or_else(|error| {
            eprintln!("recovery: Error occurred, but proceeding with reset: {:?}", error);
            true
        });
        app_sender.queue_message(
            MessageTarget::View(view_key),
            make_message(RecoveryMessages::PolicyResult(check_id, fdr_enabled)),
        );
    }
async fn check_fdr_and_maybe_reset ( view_key : ViewKey , app_sender : AppSender , check_id : usize ) { let fdr_enabled = check_fdr_enabled ( ) . await . unwrap_or_else ( | error | { eprintln ! ( " " error ) ; true } ) ; app_sender . queue_message ( MessageTarget :: View ( view_key ) , make_message ( RecoveryMessages :: PolicyResult ( check_id , fdr_enabled ) ) , ) ; }
Checks whether fdr policy allows factory reset to be performed.
Checks whether fdr policy allows factory reset to be performed .
view_key
ViewKey
app_sender
AppSender
check_id
usize