#[repr(C)]pub struct CapsuleHeader {
pub capsule_guid: Guid,
pub header_size: u32,
pub flags: CapsuleFlags,
pub capsule_image_size: u32,
}
Expand description
Common header at the start of a capsule.
Fields§
§capsule_guid: Guid
GUID that defines the type of data in the capsule.
header_size: u32
Size in bytes of the capsule header. This may be larger than the size of
CapsuleHeader
since the specific capsule type defined by
capsule_guid
may add additional header fields.
flags: CapsuleFlags
Capsule update flags.
capsule_image_size: u32
Size in bytes of the entire capsule, including the header.
Trait Implementations§
source§impl Clone for CapsuleHeader
impl Clone for CapsuleHeader
source§fn clone(&self) -> CapsuleHeader
fn clone(&self) -> CapsuleHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CapsuleHeader
impl Debug for CapsuleHeader
source§impl Default for CapsuleHeader
impl Default for CapsuleHeader
source§fn default() -> CapsuleHeader
fn default() -> CapsuleHeader
Returns the “default value” for a type. Read more
source§impl Hash for CapsuleHeader
impl Hash for CapsuleHeader
source§impl Ord for CapsuleHeader
impl Ord for CapsuleHeader
source§fn cmp(&self, other: &CapsuleHeader) -> Ordering
fn cmp(&self, other: &CapsuleHeader) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CapsuleHeader
impl PartialEq for CapsuleHeader
source§impl PartialOrd for CapsuleHeader
impl PartialOrd for CapsuleHeader
impl Copy for CapsuleHeader
impl Eq for CapsuleHeader
impl StructuralPartialEq for CapsuleHeader
Auto Trait Implementations§
impl Freeze for CapsuleHeader
impl RefUnwindSafe for CapsuleHeader
impl Send for CapsuleHeader
impl Sync for CapsuleHeader
impl Unpin for CapsuleHeader
impl UnwindSafe for CapsuleHeader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)