pub trait Reboot {
// Required methods
fn reboot() -> !;
fn reboot_to_firmware_update() -> !;
fn reboot_to_firmware_update_destructive() -> !;
fn locked() -> bool;
}Required Methods§
Sourcefn reboot_to_firmware_update() -> !
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.
Sourcefn reboot_to_firmware_update_destructive() -> !
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.
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.