pub enum NamedVolumeMode {
Existing,
Create,
EnsureExists,
}Expand description
Sandbox-time behavior for a named volume mount.
Variants§
Existing
Require the named volume to already exist.
Create
Create the named volume and fail if it already exists.
EnsureExists
Ensure the named volume exists, or reuse a compatible existing volume.
Trait Implementations§
Source§impl Clone for NamedVolumeMode
impl Clone for NamedVolumeMode
Source§fn clone(&self) -> NamedVolumeMode
fn clone(&self) -> NamedVolumeMode
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 NamedVolumeMode
Source§impl Debug for NamedVolumeMode
impl Debug for NamedVolumeMode
Source§impl<'de> Deserialize<'de> for NamedVolumeMode
impl<'de> Deserialize<'de> for NamedVolumeMode
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 NamedVolumeMode
Source§impl PartialEq for NamedVolumeMode
impl PartialEq for NamedVolumeMode
Source§fn eq(&self, other: &NamedVolumeMode) -> bool
fn eq(&self, other: &NamedVolumeMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NamedVolumeMode
impl Serialize for NamedVolumeMode
impl StructuralPartialEq for NamedVolumeMode
Auto Trait Implementations§
impl Freeze for NamedVolumeMode
impl RefUnwindSafe for NamedVolumeMode
impl Send for NamedVolumeMode
impl Sync for NamedVolumeMode
impl Unpin for NamedVolumeMode
impl UnsafeUnpin for NamedVolumeMode
impl UnwindSafe for NamedVolumeMode
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