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

Don't restart the container.

Restart the container if it exits with a non-zero status, with an optional limit on the number of restarts.

Restart the container after any exit or on Docker daemon restart.

Like Always, but don't restart the container if it was put into a stopped state.

Trait Implementations

impl Debug for RestartMode
[src]

Formats the value using the given formatter.

impl Clone for RestartMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for RestartMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for RestartMode
[src]

impl Display for RestartMode
[src]

Formats the value using the given formatter. Read more

impl FromStr for RestartMode
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more