pub struct ClockState {
pub clock: u64,
}Expand description
The state of the paravirtual clock.
Fields§
§clock: u64Current pv clock timestamp, as seen by the guest
Trait Implementations§
Source§impl Clone for ClockState
impl Clone for ClockState
Source§fn clone(&self) -> ClockState
fn clone(&self) -> ClockState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClockState
impl Debug for ClockState
Source§impl Default for ClockState
impl Default for ClockState
Source§fn default() -> ClockState
fn default() -> ClockState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClockState
impl<'de> Deserialize<'de> for ClockState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ClockState> for kvm_clock_data
impl From<&ClockState> for kvm_clock_data
Source§fn from(state: &ClockState) -> Self
fn from(state: &ClockState) -> Self
Converts to this type from the input type.
Source§impl From<&kvm_clock_data> for ClockState
impl From<&kvm_clock_data> for ClockState
Source§fn from(clock_data: &kvm_clock_data) -> Self
fn from(clock_data: &kvm_clock_data) -> Self
Converts to this type from the input type.
Source§impl Serialize for ClockState
impl Serialize for ClockState
impl Copy for ClockState
Auto Trait Implementations§
impl Freeze for ClockState
impl RefUnwindSafe for ClockState
impl Send for ClockState
impl Sync for ClockState
impl Unpin for ClockState
impl UnwindSafe for ClockState
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