#[repr(C)]pub enum PamojaSlotState {
Empty = 0,
Receiving = 1,
Staged = 2,
Pending = 3,
Confirmed = 4,
Failed = 5,
}Expand description
What a device believes about one slot.
Variants§
Empty = 0
Nothing has been written here.
Receiving = 1
An image is arriving, and written says how much of it has.
Staged = 2
A complete image that matched its manifest, not yet tried.
Pending = 3
Being tried for the first time; it reverts unless it confirms.
Confirmed = 4
Tried and confirmed working.
Failed = 5
Tried and did not confirm, so it will not be tried again.
Trait Implementations§
Source§impl Clone for PamojaSlotState
impl Clone for PamojaSlotState
Source§fn clone(&self) -> PamojaSlotState
fn clone(&self) -> PamojaSlotState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaSlotState
Source§impl Debug for PamojaSlotState
impl Debug for PamojaSlotState
impl Eq for PamojaSlotState
Source§impl PartialEq for PamojaSlotState
impl PartialEq for PamojaSlotState
Source§fn eq(&self, other: &PamojaSlotState) -> bool
fn eq(&self, other: &PamojaSlotState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaSlotState
Auto Trait Implementations§
impl Freeze for PamojaSlotState
impl RefUnwindSafe for PamojaSlotState
impl Send for PamojaSlotState
impl Sync for PamojaSlotState
impl Unpin for PamojaSlotState
impl UnsafeUnpin for PamojaSlotState
impl UnwindSafe for PamojaSlotState
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