Reboot

Trait Reboot 

Source
pub trait Reboot {
    // Required methods
    fn reboot() -> !;
    fn reboot_to_firmware_update() -> !;
    fn reboot_to_firmware_update_destructive() -> !;
    fn locked() -> bool;
}

Required Methods§

Source

fn reboot() -> !

Reboots the device.

Source

fn reboot_to_firmware_update() -> !

Reboots the device.

Presuming the device has a separate mode of operation that allows updating its firmware (for instance, a bootloader), reboots the device into this mode.

Source

fn reboot_to_firmware_update_destructive() -> !

Reboots the device.

Presuming the device has a separate destructive but more reliable way of rebooting into the firmware mode of operation, does so.

Source

fn locked() -> bool

Is device bootloader locked down? E.g., is secure boot enabled?

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§