Struct bollard_stubs::models::RestartPolicy[][src]

pub struct RestartPolicy {
    pub name: Option<RestartPolicyNameEnum>,
    pub maximum_retry_count: Option<i64>,
}

The behavior to apply when the container exits. The default is not to restart. An ever increasing delay (double the previous delay, starting at 100ms) is added before each restart to prevent flooding the server.

Fields

name: Option<RestartPolicyNameEnum>
  • Empty string means not to restart - always Always restart - unless-stopped Restart always except when the user has manually stopped the container - on-failure Restart only when the container exit code is non-zero
maximum_retry_count: Option<i64>

If on-failure is used, the number of times to retry before giving up.

Trait Implementations

impl Clone for RestartPolicy[src]

impl Debug for RestartPolicy[src]

impl Default for RestartPolicy[src]

impl<'de> Deserialize<'de> for RestartPolicy[src]

impl PartialEq<RestartPolicy> for RestartPolicy[src]

impl Serialize for RestartPolicy[src]

impl StructuralPartialEq for RestartPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.