#[repr(packed(1))]pub struct Smbios {Show 14 fields
pub anchor: [u8; 4],
pub checksum: u8,
pub length: u8,
pub major_version: u8,
pub minor_version: u8,
pub max_structure_size: u16,
pub revision: u8,
pub formatted: [u8; 5],
pub inter_anchor: [u8; 5],
pub inter_checksum: u8,
pub table_length: u16,
pub table_address: u32,
pub structure_count: u16,
pub bcd_revision: u8,
}
Fields§
§anchor: [u8; 4]
§checksum: u8
§length: u8
§major_version: u8
§minor_version: u8
§max_structure_size: u16
§revision: u8
§formatted: [u8; 5]
§inter_anchor: [u8; 5]
§inter_checksum: u8
§table_length: u16
§table_address: u32
§structure_count: u16
§bcd_revision: u8
Implementations§
Trait Implementations§
source§impl Plain for Smbios
impl Plain for Smbios
fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>where Self: Sized,
fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>where Self: Sized,
fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>where Self: Sized,
fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>where Self: Sized,
fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>where Self: Sized,
fn slice_from_mut_bytes_len( bytes: &mut [u8], len: usize ) -> Result<&mut [Self], Error>where Self: Sized,
fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
impl Copy for Smbios
Auto Trait Implementations§
impl RefUnwindSafe for Smbios
impl Send for Smbios
impl Sync for Smbios
impl Unpin for Smbios
impl UnwindSafe for Smbios
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more