pub struct OwnedMountSnapshot {
pub guest: String,
pub storage: OwnedVolumeStorage,
pub options: MountOptions,
pub stat_virtualization: StatVirtualization,
pub host_permissions: HostPermissions,
}Expand description
Owned-only mount metadata; its type cannot encode an external host binding.
Fields§
§guest: StringCanonical guest destination.
storage: OwnedVolumeStorageDirectory quota or disk capacity.
options: MountOptionsCommon mount flags and owner policy.
stat_virtualization: StatVirtualizationDirectory stat virtualization policy.
host_permissions: HostPermissionsDirectory host-permission policy.
Implementations§
Source§impl OwnedMountSnapshot
impl OwnedMountSnapshot
Sourcepub fn from_mount(
mount: &VolumeMount,
) -> Result<OwnedMountSnapshot, SnapshotManifestError>
pub fn from_mount( mount: &VolumeMount, ) -> Result<OwnedMountSnapshot, SnapshotManifestError>
Extract only sandbox-owned configuration from a public mount value.
Sourcepub fn to_mount(&self) -> VolumeMount
pub fn to_mount(&self) -> VolumeMount
Reconstruct the lossless public owned discriminant after private materialization.
Trait Implementations§
Source§impl Clone for OwnedMountSnapshot
impl Clone for OwnedMountSnapshot
Source§fn clone(&self) -> OwnedMountSnapshot
fn clone(&self) -> OwnedMountSnapshot
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 moreSource§impl Debug for OwnedMountSnapshot
impl Debug for OwnedMountSnapshot
Source§impl<'de> Deserialize<'de> for OwnedMountSnapshot
impl<'de> Deserialize<'de> for OwnedMountSnapshot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OwnedMountSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OwnedMountSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OwnedMountSnapshot
Source§impl PartialEq for OwnedMountSnapshot
impl PartialEq for OwnedMountSnapshot
Source§impl Serialize for OwnedMountSnapshot
impl Serialize for OwnedMountSnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for OwnedMountSnapshot
Auto Trait Implementations§
impl Freeze for OwnedMountSnapshot
impl RefUnwindSafe for OwnedMountSnapshot
impl Send for OwnedMountSnapshot
impl Sync for OwnedMountSnapshot
impl Unpin for OwnedMountSnapshot
impl UnsafeUnpin for OwnedMountSnapshot
impl UnwindSafe for OwnedMountSnapshot
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