pub enum Boot {
Confirmed(u8),
Trying(u8),
Reverted {
failed: u8,
fallback: u8,
},
}Expand description
What the bootloader should do with this boot.
Variants§
Confirmed(u8)
Nothing new to try; run the confirmed image in this slot.
Trying(u8)
A staged image is being tried for the first time. It is now pending, so if it does not confirm itself, the next boot will revert.
Reverted
A pending image never confirmed, so it has been failed and will not be tried again. Run the fallback.
Implementations§
Source§impl Boot
impl Boot
Sourcepub fn action(self) -> &'static str
pub fn action(self) -> &'static str
Returns the name of the decision, without the slots it names.
The bindings carry a boot decision as an action and its slots, so this is the same word in every language, which is what lets one boot be logged the same way wherever a device’s code is written.
§Returns
One of "Confirmed", "Trying", or "Reverted".
Trait Implementations§
impl Copy for Boot
impl Eq for Boot
impl StructuralPartialEq for Boot
Auto Trait Implementations§
impl Freeze for Boot
impl RefUnwindSafe for Boot
impl Send for Boot
impl Sync for Boot
impl Unpin for Boot
impl UnsafeUnpin for Boot
impl UnwindSafe for Boot
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