pub enum ContainerRestartKind {
No,
Always,
UnlessStopped,
OnFailure,
}Expand description
Which flavor of container restart policy to apply.
Variants§
No
Never restart (Docker’s "no").
Always
Always restart (Docker’s "always").
UnlessStopped
Restart unless the user explicitly stopped the container
(Docker’s "unless-stopped").
OnFailure
Restart only when the container exits with a non-zero code
(Docker’s "on-failure"). Respects max_attempts.
Trait Implementations§
Source§impl Clone for ContainerRestartKind
impl Clone for ContainerRestartKind
Source§fn clone(&self) -> ContainerRestartKind
fn clone(&self) -> ContainerRestartKind
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 ComposeSchema for ContainerRestartKind
impl ComposeSchema for ContainerRestartKind
Source§impl Debug for ContainerRestartKind
impl Debug for ContainerRestartKind
Source§impl<'de> Deserialize<'de> for ContainerRestartKind
impl<'de> Deserialize<'de> for ContainerRestartKind
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 ContainerRestartKind
impl PartialEq for ContainerRestartKind
Source§fn eq(&self, other: &ContainerRestartKind) -> bool
fn eq(&self, other: &ContainerRestartKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContainerRestartKind
impl Serialize for ContainerRestartKind
Source§impl ToSchema for ContainerRestartKind
impl ToSchema for ContainerRestartKind
impl Copy for ContainerRestartKind
impl Eq for ContainerRestartKind
impl StructuralPartialEq for ContainerRestartKind
Auto Trait Implementations§
impl Freeze for ContainerRestartKind
impl RefUnwindSafe for ContainerRestartKind
impl Send for ContainerRestartKind
impl Sync for ContainerRestartKind
impl Unpin for ContainerRestartKind
impl UnsafeUnpin for ContainerRestartKind
impl UnwindSafe for ContainerRestartKind
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.