Enum compose_yml::v2::RestartMode
[−]
[src]
pub enum RestartMode { No, OnFailure(Option<u32>), Always, UnlessStopped, }
What should Docker do when the container stops running?
Variants
No
Don't restart the container.
OnFailure(Option<u32>)
Restart the container if it exits with a non-zero status, with an optional limit on the number of restarts.
Always
Restart the container after any exit or on Docker daemon restart.
UnlessStopped
Like Always
, but don't restart the container if it was put into a
stopped state.
Trait Implementations
impl Debug for RestartMode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for RestartMode
[src]
fn clone(&self) -> RestartMode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for RestartMode
[src]
fn eq(&self, __arg_0: &RestartMode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RestartMode) -> bool
[src]
This method tests for !=
.
impl Eq for RestartMode
[src]
impl Display for RestartMode
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more