Trait smbioslib::SMBiosStruct
source · [−]pub trait SMBiosStruct<'a> {
const STRUCT_TYPE: u8;
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.
Associated Constants
const STRUCT_TYPE: u8
const STRUCT_TYPE: u8
The SMBIOS structure type
Example: System Information (Type 1) this is set to 1.
Required methods
fn new(parts: &'a UndefinedStruct) -> Self
fn new(parts: &'a UndefinedStruct) -> Self
Creates a new instance of the implementing SMBIOS type
fn parts(&self) -> &'a UndefinedStruct
fn parts(&self) -> &'a UndefinedStruct
Contains the standard parts/sections of the implementing SMBIOS type.