#[non_exhaustive]pub enum DeployMode {
Global,
Replicated,
Other(String),
}Expand description
A deploy mode with unknown provider values retained verbatim.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Global
Run one task on every eligible node.
Replicated
Run a caller-specified replica count.
Other(String)
A value outside the documented Compose deploy modes.
Implementations§
Source§impl DeployMode
impl DeployMode
Sourcepub const fn is_documented(&self) -> bool
pub const fn is_documented(&self) -> bool
Returns whether the mode is one of Compose’s documented deployment modes.
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 (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 DeployMode
impl Debug for DeployMode
impl Eq for DeployMode
Source§impl PartialEq for DeployMode
impl PartialEq 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