#[repr(C)]pub struct PamojaManifest {
pub structure_version: u8,
pub sequence: u64,
pub vendor_id: [u8; 16],
pub class_id: [u8; 16],
pub format: u8,
pub storage: u8,
pub digest: [u8; 32],
pub size: u32,
pub expires: u64,
}Expand description
What a release says about itself, and what a device checks it against.
Fields§
§structure_version: u8Which iteration of the manifest format this is.
sequence: u64Rises with every release, which is what stops an older image being replayed at a device.
vendor_id: [u8; 16]Who built the image.
class_id: [u8; 16]Which kind of device it is for.
format: u8How the payload is encoded, currently only
PAMOJA_UPDATE_FORMAT_RAW.
storage: u8Which slot the payload belongs in.
digest: [u8; 32]The SHA-256 of the payload, which every other guarantee rests on.
size: u32The payload length in bytes, known before a single byte is accepted.
expires: u64When this release stops being offered, in seconds since the Unix epoch,
or 0 to never expire.
Trait Implementations§
Source§impl Clone for PamojaManifest
impl Clone for PamojaManifest
Source§fn clone(&self) -> PamojaManifest
fn clone(&self) -> PamojaManifest
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 PamojaManifest
Source§impl Debug for PamojaManifest
impl Debug for PamojaManifest
impl Eq for PamojaManifest
Source§impl PartialEq for PamojaManifest
impl PartialEq for PamojaManifest
Source§fn eq(&self, other: &PamojaManifest) -> bool
fn eq(&self, other: &PamojaManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaManifest
Auto Trait Implementations§
impl Freeze for PamojaManifest
impl RefUnwindSafe for PamojaManifest
impl Send for PamojaManifest
impl Sync for PamojaManifest
impl Unpin for PamojaManifest
impl UnsafeUnpin for PamojaManifest
impl UnwindSafe for PamojaManifest
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