pub enum GuestClockPolicy {
Sync,
Off,
}Expand description
Host control over the guest wall clock (CLOCK_REALTIME).
Serializes as the lowercase variant name ("sync", "off") to match the CLI spelling.
The guest monotonic clock is never adjusted by either policy.
Variants§
Sync
Keep the guest wall clock in step with the host.
The runtime sends the host time at boot and about once a minute, and steps the guest clock to host time when a full snapshot is restored or a paused sandbox resumes.
Off
Never set the guest wall clock after boot.
The guest keeps the time it read at boot and advances it on its own. A restored full snapshot continues from the captured guest time instead of jumping to host time.
Implementations§
Trait Implementations§
Source§impl Clone for GuestClockPolicy
impl Clone for GuestClockPolicy
impl Copy for GuestClockPolicy
Source§impl Debug for GuestClockPolicy
impl Debug for GuestClockPolicy
Source§impl Default for GuestClockPolicy
impl Default for GuestClockPolicy
Source§impl<'de> Deserialize<'de> for GuestClockPolicy
impl<'de> Deserialize<'de> for GuestClockPolicy
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 Display for GuestClockPolicy
impl Display for GuestClockPolicy
impl Eq for GuestClockPolicy
Source§impl FromStr for GuestClockPolicy
impl FromStr for GuestClockPolicy
Source§impl PartialEq for GuestClockPolicy
impl PartialEq for GuestClockPolicy
Source§impl Serialize for GuestClockPolicy
impl Serialize for GuestClockPolicy
impl StructuralPartialEq for GuestClockPolicy
Auto Trait Implementations§
impl Freeze for GuestClockPolicy
impl RefUnwindSafe for GuestClockPolicy
impl Send for GuestClockPolicy
impl Sync for GuestClockPolicy
impl Unpin for GuestClockPolicy
impl UnsafeUnpin for GuestClockPolicy
impl UnwindSafe for GuestClockPolicy
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