#[repr(C)]pub struct SMBIOSRequest {
pub id: [u64; 4],
pub revision: u64,
pub response: Option<NonNull<SMBIOSResponse>>,
}Expand description
Request the SMBIOS entry point
Fields§
§id: [u64; 4]The request id array
revision: u64The request revision
response: Option<NonNull<SMBIOSResponse>>Response pointer
Implementations§
Source§impl SMBIOSRequest
impl SMBIOSRequest
Source§impl SMBIOSRequest
impl SMBIOSRequest
Sourcepub unsafe fn get_response(&self) -> Option<&SMBIOSResponse>
pub unsafe fn get_response(&self) -> Option<&SMBIOSResponse>
Get the response as a reference, if it’s present.
§Safety
The backing memory must not have been invalidated by the kernel, either by writing to the physical memory, changing where it’s mapped, or unmapping it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SMBIOSRequest
impl RefUnwindSafe for SMBIOSRequest
impl !Send for SMBIOSRequest
impl !Sync for SMBIOSRequest
impl Unpin for SMBIOSRequest
impl UnwindSafe for SMBIOSRequest
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