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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.