[][src]Struct dmi::Smbios3

#[repr(packed)]
pub struct Smbios3 {
    pub anchor: [u8; 5],
    pub checksum: u8,
    pub length: u8,
    pub major_version: u8,
    pub minor_version: u8,
    pub docrev: u8,
    pub revision: u8,
    pub table_length: u32,
    pub table_address: u64,
    // some fields omitted
}

Fields

anchor: [u8; 5]checksum: u8length: u8major_version: u8minor_version: u8docrev: u8revision: u8table_length: u32table_address: u64

Methods

impl Smbios3[src]

pub fn is_valid(&self) -> bool[src]

Trait Implementations

impl Debug for Smbios3[src]

impl Clone for Smbios3[src]

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

Performs copy-assignment from source. Read more

impl Default for Smbios3[src]

impl Plain for Smbios3[src]

fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>[src]

fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>[src]

fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>[src]

fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>[src]

fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>[src]

fn slice_from_mut_bytes_len(
    bytes: &mut [u8],
    len: usize
) -> Result<&mut [Self], Error>
[src]

fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>[src]

Auto Trait Implementations

impl Unpin for Smbios3

impl Send for Smbios3

impl Sync for Smbios3

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

impl<T> BorrowMut<T> 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

The resulting type after obtaining ownership.