pub enum MountAccess {
Ro,
Cow,
Rw,
}Expand description
How a container sees an attached directory.
Variants§
Ro
The container can read the directory but not change it.
Cow
The container writes to a private copy-on-write overlay; the host directory never changes.
Rw
The container writes straight through to the host directory.
Implementations§
Source§impl MountAccess
impl MountAccess
pub const ALL: [MountAccess; 3]
pub fn label(self) -> &'static str
Sourcepub fn without_overlay(self) -> MountAccess
pub fn without_overlay(self) -> MountAccess
The mode this attachment takes where the host filesystem cannot carry a copy-on-write overlay. Read-only is the substitute, because the alternative would let the container write through to the host directory the user asked to keep unchanged.
This is the one rule for an unavailable overlay: the wizard offers the
same modes Self::offered lists, and the runtime downgrades a stored
mount the same way.
Sourcepub fn offered(overlay_available: bool) -> Vec<MountAccess>
pub fn offered(overlay_available: bool) -> Vec<MountAccess>
The modes an attachment may be given, given whether the host filesystem can carry the copy-on-write overlay.
Trait Implementations§
Source§impl Clone for MountAccess
impl Clone for MountAccess
Source§fn clone(&self) -> MountAccess
fn clone(&self) -> MountAccess
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MountAccess
Source§impl Debug for MountAccess
impl Debug for MountAccess
Source§impl<'de> Deserialize<'de> for MountAccess
impl<'de> Deserialize<'de> for MountAccess
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MountAccess, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MountAccess, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for MountAccess
Source§impl PartialEq for MountAccess
impl PartialEq for MountAccess
Source§impl Serialize for MountAccess
impl Serialize for MountAccess
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,
impl StructuralPartialEq for MountAccess
Auto Trait Implementations§
impl Freeze for MountAccess
impl RefUnwindSafe for MountAccess
impl Send for MountAccess
impl Sync for MountAccess
impl Unpin for MountAccess
impl UnsafeUnpin for MountAccess
impl UnwindSafe for MountAccess
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more