[−][src]Enum dmidecode::EntryPoint 
Variants
V2(EntryPointV2)V3(EntryPointV3)Implementations
impl EntryPoint[src]
pub fn len(&self) -> u8[src]
pub fn major(&self) -> u8[src]
pub fn minor(&self) -> u8[src]
pub fn revision(&self) -> u8[src]
pub fn smbios_address(&self) -> u64[src]
pub fn smbios_len(&self) -> u32[src]
pub fn to_version(&self) -> SmbiosVersion[src]
pub fn structures<'buffer>(&self, buffer: &'buffer [u8]) -> Structures<'buffer>ⓘNotable traits for Structures<'buffer>
impl<'buffer> Iterator for Structures<'buffer>    type Item = Result<Structure<'buffer>, MalformedStructureError>;[src]
Notable traits for Structures<'buffer>
impl<'buffer> Iterator for Structures<'buffer>    type Item = Result<Structure<'buffer>, MalformedStructureError>;Create an iterator across the SMBIOS structures found in buffer.
Example
use dmidecode::EntryPoint; const DMIDECODE_BIN: &'static [u8] = include_bytes!("./test-data/dmidecode.bin"); let entry_point = EntryPoint::search(DMIDECODE_BIN)?; for s in entry_point.structures(&DMIDECODE_BIN[entry_point.smbios_address() as usize..]) { let table = s?; } Ok(())
pub fn search(buffer: &[u8]) -> Result<EntryPoint, InvalidEntryPointError>[src]
Search for an instance of an SMBIOS EntryPoint in a memory buffer.
Example
use dmidecode::EntryPoint; const ENTRY_BIN: &'static [u8] = include_bytes!("./test-data/entry.bin"); let entry_point = EntryPoint::search(ENTRY_BIN);
Errors
If this function fails to find a valid SMBIOS EntryPoint, it will return
an InvalidEntryPointError variant.
Auto Trait Implementations
impl RefUnwindSafe for EntryPoint
impl Send for EntryPoint
impl Sync for EntryPoint
impl Unpin for EntryPoint
impl UnwindSafe for EntryPoint
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,