#[repr(packed(1))]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,
/* private fields */
}
Fields§
§anchor: [u8; 5]
§checksum: u8
§length: u8
§major_version: u8
§minor_version: u8
§docrev: u8
§revision: u8
§table_length: u32
§table_address: u64
Implementations§
Trait Implementations§
source§impl Plain for Smbios3
impl Plain for Smbios3
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 Smbios3
Auto Trait Implementations§
impl RefUnwindSafe for Smbios3
impl Send for Smbios3
impl Sync for Smbios3
impl Unpin for Smbios3
impl UnwindSafe for Smbios3
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