[][src]Struct dmidecode::RawStructure

pub struct RawStructure<'buffer> {
    pub version: SmbiosVersion,
    pub info: InfoType,
    pub handle: u16,
    pub data: &'buffer [u8],
    // some fields omitted
}

The raw SMBIOS structure information for structures that are not handled by this crate, such as Oem structures.

Fields

version: SmbiosVersioninfo: InfoTypehandle: u16data: &'buffer [u8]

Implementations

impl<'buffer> RawStructure<'buffer>[src]

pub fn find_string(
    &self,
    idx: u8
) -> Result<&'buffer str, MalformedStructureError>
[src]

Find a string in the strings table by the string index. If the string index is 0, the empty string is returned. Otherwise, the string corresponding to that string index in the strings table is returned.

Errors

Returns a MalformedStructureError::InvalidStringIndex if the index is outside of the strings table.

Trait Implementations

impl<'buffer> Clone for RawStructure<'buffer>[src]

impl<'buffer> Debug for RawStructure<'buffer>[src]

impl<'buffer> Eq for RawStructure<'buffer>[src]

impl<'buffer> Hash for RawStructure<'buffer>[src]

impl<'buffer> PartialEq<RawStructure<'buffer>> for RawStructure<'buffer>[src]

impl<'buffer> StructuralEq for RawStructure<'buffer>[src]

impl<'buffer> StructuralPartialEq for RawStructure<'buffer>[src]

Auto Trait Implementations

impl<'buffer> RefUnwindSafe for RawStructure<'buffer>

impl<'buffer> Send for RawStructure<'buffer>

impl<'buffer> Sync for RawStructure<'buffer>

impl<'buffer> Unpin for RawStructure<'buffer>

impl<'buffer> UnwindSafe for RawStructure<'buffer>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.