pub struct SlotRecord {
pub state: SlotState,
pub sequence: u64,
pub size: u32,
pub digest: [u8; 32],
pub written: u32,
}Expand description
What a slot holds.
Fields§
§state: SlotStateThe slot’s state.
sequence: u64The sequence number of the image in the slot.
size: u32The image’s length in bytes.
digest: [u8; 32]The image’s digest.
written: u32How many bytes of the image have been stored so far.
Equal to size once the image is complete. While it is smaller, this is
where a resumed transfer starts again.
Trait Implementations§
Source§impl Clone for SlotRecord
impl Clone for SlotRecord
Source§fn clone(&self) -> SlotRecord
fn clone(&self) -> SlotRecord
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 SlotRecord
Source§impl Debug for SlotRecord
impl Debug for SlotRecord
Source§impl Default for SlotRecord
impl Default for SlotRecord
Source§fn default() -> SlotRecord
fn default() -> SlotRecord
Returns the “default value” for a type. Read more
impl Eq for SlotRecord
Source§impl PartialEq for SlotRecord
impl PartialEq for SlotRecord
Source§fn eq(&self, other: &SlotRecord) -> bool
fn eq(&self, other: &SlotRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SlotRecord
Auto Trait Implementations§
impl Freeze for SlotRecord
impl RefUnwindSafe for SlotRecord
impl Send for SlotRecord
impl Sync for SlotRecord
impl Unpin for SlotRecord
impl UnsafeUnpin for SlotRecord
impl UnwindSafe for SlotRecord
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