Trait smbioslib::SMBiosStruct
source · pub trait SMBiosStruct<'a> {
const STRUCT_TYPE: u8;
// Required methods
fn new(parts: &'a UndefinedStruct) -> Self;
fn parts(&self) -> &'a UndefinedStruct;
}
Expand description
SMBIOS Structure
A type implementing this trait provides a representation of an SMBIOS type.
Required Associated Constants§
sourceconst STRUCT_TYPE: u8
const STRUCT_TYPE: u8
The SMBIOS structure type
Example: System Information (Type 1) this is set to 1.
Required Methods§
sourcefn new(parts: &'a UndefinedStruct) -> Self
fn new(parts: &'a UndefinedStruct) -> Self
Creates a new instance of the implementing SMBIOS type
sourcefn parts(&self) -> &'a UndefinedStruct
fn parts(&self) -> &'a UndefinedStruct
Contains the standard parts/sections of the implementing SMBIOS type.