#[repr(C)]pub struct BootTimeRequest {
pub id: [u64; 4],
pub revision: u64,
pub response: Option<NonNull<BootTimeResponse>>,
}Expand description
Request the time on boot
Fields§
§id: [u64; 4]The request id array
revision: u64The request revision
response: Option<NonNull<BootTimeResponse>>Response pointer
Implementations§
Source§impl BootTimeRequest
impl BootTimeRequest
Sourcepub unsafe fn get_response(&self) -> Option<&BootTimeResponse>
pub unsafe fn get_response(&self) -> Option<&BootTimeResponse>
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 BootTimeRequest
impl RefUnwindSafe for BootTimeRequest
impl !Send for BootTimeRequest
impl !Sync for BootTimeRequest
impl Unpin for BootTimeRequest
impl UnwindSafe for BootTimeRequest
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