Enum embassy_boot::State
source · pub enum State {
Boot,
Swap,
DfuDetach,
}
Expand description
The state of the bootloader after running prepare.
Variants§
Boot
Bootloader is ready to boot the active partition.
Swap
Bootloader has swapped the active partition with the dfu partition and will attempt boot.
DfuDetach
Application has received a request to reboot into DFU mode to apply an update.
Trait Implementations§
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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