pub struct Header {
pub digest: [u32; 8],
pub identifier: u32,
pub kind: BootSvcKind,
pub length: u32,
}
Expand description
The Boot Services header common to all boot services commands and responses.
Fields§
§digest: [u32; 8]
A SHA256 digest over the rest of the boot services message.
identifier: u32
A tag that identifies this struct as a boot services message (‘BSVC’).
kind: BootSvcKind
The type of boot services message that follows this header.
length: u32
The length of the boot services message in bytes (including the header).
Implementations§
Trait Implementations§
Source§impl Annotate for &Header
impl Annotate for &Header
fn format(&self, variant: Option<&str>, field: &MemberId<'_>) -> Option<Format>
fn comment(&self, variant: Option<&str>, field: &MemberId<'_>) -> Option<String>
fn as_annotate(&self) -> Option<&dyn Annotate>
fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
Source§impl Annotate for Header
impl Annotate for Header
fn format(&self, _variant: Option<&str>, field: &MemberId<'_>) -> Option<Format>
fn comment( &self, _variant: Option<&str>, field: &MemberId<'_>, ) -> Option<String>
fn as_annotate(&self) -> Option<&dyn Annotate>
fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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