pub enum FirmwareUpdateStep {
DetectingBootloader,
BootloaderFound(BootloaderType),
ParsingFirmwareImage,
QueryingDeviceState,
UpdateInfo {
current_version: Option<(String, Option<[u8; 32]>)>,
new_version: (String, [u8; 32]),
},
UploadingFirmware,
ActivatingFirmware,
TriggeringReboot,
}Expand description
The step of the firmware update that is currently being performed
Variants§
DetectingBootloader
Querying which bootloader the device is running
BootloaderFound(BootloaderType)
The bootloader was found
ParsingFirmwareImage
Extracting meta information from the new firmware image
QueryingDeviceState
Querying the current firmware state of the device
UpdateInfo
A summary of what update exactly we will perform now
Fields
UploadingFirmware
Uploading the new firmware to the device
ActivatingFirmware
Marking the new firmware to be swapped to active during next boot
TriggeringReboot
Triggering a system reboot so that the bootloader switches to the new image
Trait Implementations§
Source§impl Clone for FirmwareUpdateStep
impl Clone for FirmwareUpdateStep
Source§fn clone(&self) -> FirmwareUpdateStep
fn clone(&self) -> FirmwareUpdateStep
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FirmwareUpdateStep
impl Debug for FirmwareUpdateStep
Auto Trait Implementations§
impl Freeze for FirmwareUpdateStep
impl RefUnwindSafe for FirmwareUpdateStep
impl Send for FirmwareUpdateStep
impl Sync for FirmwareUpdateStep
impl Unpin for FirmwareUpdateStep
impl UnwindSafe for FirmwareUpdateStep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more