pub enum StatVirtualization {
Strict,
Relaxed,
Off,
}Expand description
Stat virtualization policy for a virtiofs-backed volume mount.
Serializes/deserializes as the lowercase variant name ("strict", "relaxed", "off") so persisted JSON aligns with the CLI grammar (stat-virt=strict|relaxed|off) and the NAPI string contract.
Variants§
Strict
Fail-closed: probe the host backing path; require xattr support.
Relaxed
Opportunistic: apply the overlay when present; tolerate missing xattr support.
Off
Literal host metadata: do not read or apply the override xattr.
Trait Implementations§
Source§impl Clone for StatVirtualization
impl Clone for StatVirtualization
Source§fn clone(&self) -> StatVirtualization
fn clone(&self) -> StatVirtualization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StatVirtualization
Source§impl Debug for StatVirtualization
impl Debug for StatVirtualization
Source§impl<'de> Deserialize<'de> for StatVirtualization
impl<'de> Deserialize<'de> for StatVirtualization
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
impl Eq for StatVirtualization
Source§impl PartialEq for StatVirtualization
impl PartialEq for StatVirtualization
Source§fn eq(&self, other: &StatVirtualization) -> bool
fn eq(&self, other: &StatVirtualization) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StatVirtualization
impl Serialize for StatVirtualization
impl StructuralPartialEq for StatVirtualization
Auto Trait Implementations§
impl Freeze for StatVirtualization
impl RefUnwindSafe for StatVirtualization
impl Send for StatVirtualization
impl Sync for StatVirtualization
impl Unpin for StatVirtualization
impl UnsafeUnpin for StatVirtualization
impl UnwindSafe for StatVirtualization
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