#[repr(transparent)]pub struct VZDiskImageSynchronizationMode(pub NSInteger);
VZDiskImageStorageDeviceAttachment
only.Expand description
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl VZDiskImageSynchronizationMode
impl VZDiskImageSynchronizationMode
Sourcepub const Full: Self
pub const Full: Self
The data is synchronized to the permanent storage holding the disk image. No synchronized data is lost on panic or loss of power.
Sourcepub const Fsync: Self
pub const Fsync: Self
Synchronize the data to the drive.
This mode synchronizes the data with the drive, but does not ensure the data is moved from the disk’s internal cache to permanent storage.
This is a best-effort mode with the same guarantees as the fsync() system call.
Sourcepub const None: Self
pub const None: Self
Do not synchronize the data with the permanent storage. This option does not guarantee data integrity if any error condition occurs such as disk full on the host, panic, power loss, etc.
This mode is useful when a virtual machine is only run once to perform a task to completion or failure. In that case, the disk image cannot safely be reused on failure.
Using this mode may result in improved performance since no synchronization with the underlying storage is necessary.
Trait Implementations§
Source§impl Clone for VZDiskImageSynchronizationMode
impl Clone for VZDiskImageSynchronizationMode
Source§fn clone(&self) -> VZDiskImageSynchronizationMode
fn clone(&self) -> VZDiskImageSynchronizationMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Ord for VZDiskImageSynchronizationMode
impl Ord for VZDiskImageSynchronizationMode
Source§fn cmp(&self, other: &VZDiskImageSynchronizationMode) -> Ordering
fn cmp(&self, other: &VZDiskImageSynchronizationMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for VZDiskImageSynchronizationMode
impl PartialEq for VZDiskImageSynchronizationMode
Source§fn eq(&self, other: &VZDiskImageSynchronizationMode) -> bool
fn eq(&self, other: &VZDiskImageSynchronizationMode) -> bool
self
and other
values to be equal, and is used by ==
.