pub enum DockerVolumeMode {
Named,
Bind,
}Expand description
How the remote-Docker backend backs a workload’s persistent VolumeRefs.
Named (the default) attaches a daemon-managed docker volume by name — it
works with a remote daemon and Docker Desktop / macOS (where a client host
path isn’t the daemon’s filesystem). Bind bind-mounts a host directory under
<data_dir>/compute/volumes/<name> (matching the native-container convention),
so it is local-daemon only but keeps the data on the node’s own filesystem.
Either way the volume is node-local and outside the blob-snapshot durability
story (consistent with the docker backend’s scale_to_zero: false).
Variants§
Named
A daemon-managed named volume (docker volume), portable across daemons.
Bind
A host bind mount under <data_dir>/compute/volumes/<name> (local daemon only).
Trait Implementations§
Source§impl Clone for DockerVolumeMode
impl Clone for DockerVolumeMode
Source§fn clone(&self) -> DockerVolumeMode
fn clone(&self) -> DockerVolumeMode
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 DockerVolumeMode
Source§impl Debug for DockerVolumeMode
impl Debug for DockerVolumeMode
Source§impl Default for DockerVolumeMode
impl Default for DockerVolumeMode
Source§fn default() -> DockerVolumeMode
fn default() -> DockerVolumeMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DockerVolumeMode
impl<'de> Deserialize<'de> for DockerVolumeMode
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 DockerVolumeMode
Source§impl PartialEq for DockerVolumeMode
impl PartialEq for DockerVolumeMode
Source§impl Serialize for DockerVolumeMode
impl Serialize for DockerVolumeMode
impl StructuralPartialEq for DockerVolumeMode
Auto Trait Implementations§
impl Freeze for DockerVolumeMode
impl RefUnwindSafe for DockerVolumeMode
impl Send for DockerVolumeMode
impl Sync for DockerVolumeMode
impl Unpin for DockerVolumeMode
impl UnsafeUnpin for DockerVolumeMode
impl UnwindSafe for DockerVolumeMode
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.