Struct smbioslib::SMBiosData [−][src]
pub struct SMBiosData { pub version: Option<SMBiosVersion>, // some fields omitted }
Expand description
SMBIOS Data
Contains an optional SMBIOS version and a collection of SMBIOS structures.
Fields
version: Option<SMBiosVersion>
Version of the contained SMBIOS structures.
Implementations
Creates an SMBIOS table parser which can be iterated
table
is iterable table data.
version
is optional and represents the DMTF SMBIOS Standard version of the bytes in data
.
Creates an SMBIOS table parser which can be iterated
data
is a block of bytes representing the raw table data.
version
is optional and represents the DMTF SMBIOS Standard version of the bytes in data
.
pub fn try_load_from_file(
filename: &str,
version: Option<SMBiosVersion>
) -> Result<SMBiosData, Error>
[src]
pub fn try_load_from_file(
filename: &str,
version: Option<SMBiosVersion>
) -> Result<SMBiosData, Error>
[src]Loads raw SMBios table data from a file
Iterator of the contained UndefinedStruct items
pub fn defined_struct_iter<T: 'a>(&'a self) -> impl Iterator<Item = T> + 'a where
T: SMBiosStruct<'a>,
[src]
pub fn defined_struct_iter<T: 'a>(&'a self) -> impl Iterator<Item = T> + 'a where
T: SMBiosStruct<'a>,
[src]An iterator over the defined type instances within the table.
Tests if every element of the defined struct iterator matches a predicate.
Tests if any element of the defined struct iterator matches a predicate.
Finds the first occurance of the structure
Finds the first occurance of the structure that satisfies a predicate.
Applies function to the defined struct elements and returns the first non-none result.
Creates an iterator of the defined structure which uses a closure to determine if an element should be yielded.
pub fn map<A: 'a, B: 'a, F: 'a>(&'a self, f: F) -> impl Iterator<Item = B> + 'a where
A: SMBiosStruct<'a>,
F: FnMut(A) -> B,
[src]
pub fn map<A: 'a, B: 'a, F: 'a>(&'a self, f: F) -> impl Iterator<Item = B> + 'a where
A: SMBiosStruct<'a>,
F: FnMut(A) -> B,
[src]Takes a closure and creates an iterator which calls that closure on each defined struct.
pub fn filter_map<A: 'a, B: 'a, F: 'a>(
&'a self,
f: F
) -> impl Iterator<Item = B> + 'a where
A: SMBiosStruct<'a>,
F: FnMut(A) -> Option<B>,
[src]
pub fn filter_map<A: 'a, B: 'a, F: 'a>(
&'a self,
f: F
) -> impl Iterator<Item = B> + 'a where
A: SMBiosStruct<'a>,
F: FnMut(A) -> Option<B>,
[src]Creates an iterator that both filters and maps from the defined struct iterator.
Finds the structure matching the given handle
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SMBiosData
impl Send for SMBiosData
impl Sync for SMBiosData
impl Unpin for SMBiosData
impl UnwindSafe for SMBiosData