pub enum SlotState {
Empty,
Receiving,
Staged,
Pending,
Confirmed,
Failed,
}Expand description
What the device believes about a slot.
Variants§
Empty
Nothing here, or nothing worth keeping.
Receiving
Holds part of an image that is still arriving. Never bootable: the bytes are unverified until the whole image is in, and the state exists so a transfer cut off by a dead link can pick up where it stopped.
Staged
Holds a verified image that has not been booted yet.
Pending
Was booted but has not yet reported itself healthy.
Confirmed
Booted and confirmed healthy. This is what the device falls back to.
Failed
Was booted and never confirmed, so it is not to be tried again.
Trait Implementations§
impl Copy for SlotState
impl Eq for SlotState
impl StructuralPartialEq for SlotState
Auto Trait Implementations§
impl Freeze for SlotState
impl RefUnwindSafe for SlotState
impl Send for SlotState
impl Sync for SlotState
impl Unpin for SlotState
impl UnsafeUnpin for SlotState
impl UnwindSafe for SlotState
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