#[repr(C)]pub struct VMClockShmHeader {
pub magic: AtomicU32,
pub size: AtomicU32,
pub version: AtomicU16,
pub counter_id: AtomicU8,
pub time_type: AtomicU8,
pub seq_count: AtomicU32,
}Expand description
Header structure to the Shared Memory segment where the VMClock data is kept.
Most members are atomic types as they are subject to be updated by the Hypervisor.
Fields§
§magic: AtomicU32Magic number to uniquely identify the content of the memory segment.
size: AtomicU32Size of the memory segment.
version: AtomicU16Version identifying the layout of data written to the shared memory segment.
counter_id: AtomicU8Counter ID.
time_type: AtomicU8Time type.
Possible values are:
VMCLOCK_TIME_UTC 0 // Since 1970-01-01 00:00:00z VMCLOCK_TIME_TAI 1 // Since 1970-01-01 00:00:00z VMCLOCK_TIME_MONOTONIC 2 // Since undefined epoch VMCLOCK_TIME_INVALID_SMEARED 3 // Not supported VMCLOCK_TIME_INVALID_MAYBE_SMEARED 4 // Not supported
seq_count: AtomicU32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for VMClockShmHeader
impl RefUnwindSafe for VMClockShmHeader
impl Send for VMClockShmHeader
impl Sync for VMClockShmHeader
impl Unpin for VMClockShmHeader
impl UnwindSafe for VMClockShmHeader
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