#[repr(C, packed(1))]pub struct GenericSdtHeader {
pub signature: [u8; 4],
pub length: u32,
pub revision: u8,
pub checksum: u8,
pub oem_id: [u8; 6],
pub oem_table_id: u64,
pub oem_revision: u32,
pub creator_id: u32,
pub creator_revision: u32,
}Fields§
§signature: [u8; 4]§length: u32§revision: u8§checksum: u8§oem_id: [u8; 6]§oem_table_id: u64§oem_revision: u32§creator_id: u32§creator_revision: u32Implementations§
Trait Implementations§
Source§impl AsBytes for GenericSdtHeader
impl AsBytes for GenericSdtHeader
Source§impl Default for GenericSdtHeader
impl Default for GenericSdtHeader
Source§fn default() -> GenericSdtHeader
fn default() -> GenericSdtHeader
Returns the “default value” for a type. Read more
Source§impl FromBytes for GenericSdtHeader
impl FromBytes for GenericSdtHeader
Source§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
Source§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
Source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes as a &[Self] with length
equal to count without copying. Read moreSource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes as a &[Self] with length
equal to count without copying. Read moreSource§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
Source§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moreSource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moreSource§impl FromZeroes for GenericSdtHeader
impl FromZeroes for GenericSdtHeader
Auto Trait Implementations§
impl Freeze for GenericSdtHeader
impl RefUnwindSafe for GenericSdtHeader
impl Send for GenericSdtHeader
impl Sync for GenericSdtHeader
impl Unpin for GenericSdtHeader
impl UnwindSafe for GenericSdtHeader
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