pub struct Header(/* private fields */);
Expand description
§SMBIOS Header
The header part/section of a structure
Implementations§
Source§impl Header
impl Header
Sourcepub const SIZE: usize = 4usize
pub const SIZE: usize = 4usize
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 = 0usize
pub const STRUCT_TYPE_OFFSET: usize = 0usize
StructType offset (offset 0 and 1 bytes)
Sourcepub const LENGTH_OFFSET: usize = 1usize
pub const LENGTH_OFFSET: usize = 1usize
Length offset (offset 1 and 1 bytes)
Sourcepub const HANDLE_OFFSET: usize = 2usize
pub const HANDLE_OFFSET: usize = 2usize
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 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§
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