pub enum DeployMode {
Global,
Replicated,
ReplicatedJob,
GlobalJob,
}Expand description
Defines the replication model used to run a service or job. See more: https://docs.docker.com/reference/compose-file/deploy/#mode
Variants§
Global
Ensures exactly one task continuously runs per physical node until stopped.
Replicated
Continuously runs a specified number of tasks across nodes until stopped (default).
ReplicatedJob
Executes a defined number of tasks until a completion state (exits with code 0)’. Total tasks are determined by replicas. Concurrency can be limited using the max-concurrent option (CLI only).
GlobalJob
Executes one task per physical node with a completion state (exits with code 0). Automatically runs on new nodes as they are added.
Trait Implementations§
Source§impl Clone for DeployMode
impl Clone for DeployMode
Source§fn clone(&self) -> DeployMode
fn clone(&self) -> DeployMode
Returns a duplicate of the value. Read more
1.0.0 · 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 DeployMode
impl Debug for DeployMode
Source§impl<'de> Deserialize<'de> for DeployMode
impl<'de> Deserialize<'de> for DeployMode
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
Source§impl PartialEq for DeployMode
impl PartialEq for DeployMode
Source§impl Serialize for DeployMode
impl Serialize for DeployMode
impl Eq for DeployMode
impl StructuralPartialEq for DeployMode
Auto Trait Implementations§
impl Freeze for DeployMode
impl RefUnwindSafe for DeployMode
impl Send for DeployMode
impl Sync for DeployMode
impl Unpin for DeployMode
impl UnsafeUnpin for DeployMode
impl UnwindSafe for DeployMode
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,
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
Compare self to
key and return true if they are equal.