#[repr(transparent)]pub struct VZDiskSynchronizationMode(pub NSInteger);
Available on crate feature
VZDiskSynchronizationMode
only.Expand description
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl VZDiskSynchronizationMode
impl VZDiskSynchronizationMode
Sourcepub const Full: Self
pub const Full: Self
Perform all synchronization operations as requested by the guest OS.
With VZDiskSynchronizationModeFull, “flush” and “barrier” commands from the guest result in their counterpart synchronization commands being sent to the disk implementation.
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 case of failure, the state of blocks on disk and their order is undefined.
Using this mode may result in improved performance since no synchronization with the underlying storage is necessary.
Trait Implementations§
Source§impl Clone for VZDiskSynchronizationMode
impl Clone for VZDiskSynchronizationMode
Source§fn clone(&self) -> VZDiskSynchronizationMode
fn clone(&self) -> VZDiskSynchronizationMode
Returns a duplicate 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 VZDiskSynchronizationMode
impl Debug for VZDiskSynchronizationMode
Source§impl Encode for VZDiskSynchronizationMode
impl Encode for VZDiskSynchronizationMode
Source§impl Hash for VZDiskSynchronizationMode
impl Hash for VZDiskSynchronizationMode
Source§impl Ord for VZDiskSynchronizationMode
impl Ord for VZDiskSynchronizationMode
Source§fn cmp(&self, other: &VZDiskSynchronizationMode) -> Ordering
fn cmp(&self, other: &VZDiskSynchronizationMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for VZDiskSynchronizationMode
impl PartialOrd for VZDiskSynchronizationMode
Source§impl RefEncode for VZDiskSynchronizationMode
impl RefEncode for VZDiskSynchronizationMode
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for VZDiskSynchronizationMode
impl Eq for VZDiskSynchronizationMode
impl StructuralPartialEq for VZDiskSynchronizationMode
Auto Trait Implementations§
impl Freeze for VZDiskSynchronizationMode
impl RefUnwindSafe for VZDiskSynchronizationMode
impl Send for VZDiskSynchronizationMode
impl Sync for VZDiskSynchronizationMode
impl Unpin for VZDiskSynchronizationMode
impl UnwindSafe for VZDiskSynchronizationMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.