pub struct Header(_);
Expand description
SMBIOS Header
The header part/section of a structure
Implementations
sourceimpl Header
impl Header
sourcepub const SIZE: usize
pub const SIZE: usize
Total size of a Header (4)
A header has a byte for the struct_type at offset 0, a byte for the length at offset 1, and a word for the handle at offset 2 for a total of 4 bytes.
sourcepub const STRUCT_TYPE_OFFSET: usize
pub const STRUCT_TYPE_OFFSET: usize
StructType offset (offset 0 and 1 bytes)
sourcepub const LENGTH_OFFSET: usize
pub const LENGTH_OFFSET: usize
Length offset (offset 1 and 1 bytes)
sourcepub const HANDLE_OFFSET: usize
pub const HANDLE_OFFSET: usize
Handle offset (offset 2 and 2 bytes)
sourcepub fn struct_type(&self) -> u8
pub fn struct_type(&self) -> u8
The type of SMBIOS structure
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more