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