pub enum HostPermissions {
Private,
Mirror,
}Expand description
Host permission propagation policy for a virtiofs-backed volume mount.
Serializes/deserializes as the lowercase variant name ("private", "mirror") to align with the CLI and NAPI spellings.
Variants§
Private
Guest chmod stays in the metadata overlay only.
Mirror
Mirror ordinary rwx bits for regular files and directories to the host inode.
Trait Implementations§
Source§impl Clone for HostPermissions
impl Clone for HostPermissions
Source§fn clone(&self) -> HostPermissions
fn clone(&self) -> HostPermissions
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 HostPermissions
Source§impl Debug for HostPermissions
impl Debug for HostPermissions
Source§impl<'de> Deserialize<'de> for HostPermissions
impl<'de> Deserialize<'de> for HostPermissions
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 HostPermissions
Source§impl PartialEq for HostPermissions
impl PartialEq for HostPermissions
Source§fn eq(&self, other: &HostPermissions) -> bool
fn eq(&self, other: &HostPermissions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HostPermissions
impl Serialize for HostPermissions
impl StructuralPartialEq for HostPermissions
Auto Trait Implementations§
impl Freeze for HostPermissions
impl RefUnwindSafe for HostPermissions
impl Send for HostPermissions
impl Sync for HostPermissions
impl Unpin for HostPermissions
impl UnsafeUnpin for HostPermissions
impl UnwindSafe for HostPermissions
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