[][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]

Methods

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]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

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

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

type Owned = T