pub enum FirmwareUpdateStep {
DetectingBootloader,
BootloaderFound(BootloaderType),
ParsingFirmwareImage,
QueryingDeviceState,
UpdateInfo {
current_version: Option<(String, Option<Vec<u8>>)>,
new_version: (String, Vec<u8>),
},
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§impl Debug for FirmwareUpdateStep
impl Debug for FirmwareUpdateStep
Source§impl Display for FirmwareUpdateStep
impl Display for FirmwareUpdateStep
impl Eq for FirmwareUpdateStep
Source§impl Ord for FirmwareUpdateStep
impl Ord for FirmwareUpdateStep
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FirmwareUpdateStep
impl PartialEq for FirmwareUpdateStep
Source§impl PartialOrd for FirmwareUpdateStep
impl PartialOrd for FirmwareUpdateStep
impl StructuralPartialEq 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 UnsafeUnpin 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