#[repr(C)]pub struct PamojaSlotRecord {
pub state: PamojaSlotState,
pub sequence: u64,
pub size: u32,
pub digest: [u8; 32],
pub written: u32,
}Expand description
The record a device keeps about one slot, durable across a reboot.
Fields§
§state: PamojaSlotStateThe state of the slot.
sequence: u64The sequence number of the image in the slot.
size: u32The length of the image in bytes.
digest: [u8; 32]The digest of the image.
written: u32How many bytes have been stored, which is where a resumed transfer picks up.
Trait Implementations§
Source§impl Clone for PamojaSlotRecord
impl Clone for PamojaSlotRecord
Source§fn clone(&self) -> PamojaSlotRecord
fn clone(&self) -> PamojaSlotRecord
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 PamojaSlotRecord
Source§impl Debug for PamojaSlotRecord
impl Debug for PamojaSlotRecord
impl Eq for PamojaSlotRecord
Source§impl PartialEq for PamojaSlotRecord
impl PartialEq for PamojaSlotRecord
Source§fn eq(&self, other: &PamojaSlotRecord) -> bool
fn eq(&self, other: &PamojaSlotRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaSlotRecord
Auto Trait Implementations§
impl Freeze for PamojaSlotRecord
impl RefUnwindSafe for PamojaSlotRecord
impl Send for PamojaSlotRecord
impl Sync for PamojaSlotRecord
impl Unpin for PamojaSlotRecord
impl UnsafeUnpin for PamojaSlotRecord
impl UnwindSafe for PamojaSlotRecord
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