Struct bollard::service::ServiceSpecRollbackConfig[][src]

pub struct ServiceSpecRollbackConfig {
    pub parallelism: Option<i64>,
    pub delay: Option<i64>,
    pub failure_action: Option<ServiceSpecRollbackConfigFailureActionEnum>,
    pub monitor: Option<i64>,
    pub max_failure_ratio: Option<f64>,
    pub order: Option<ServiceSpecRollbackConfigOrderEnum>,
}

Specification for the rollback strategy of the service.

Fields

parallelism: Option<i64>

Maximum number of tasks to be rolled back in one iteration (0 means unlimited parallelism).

delay: Option<i64>

Amount of time between rollback iterations, in nanoseconds.

failure_action: Option<ServiceSpecRollbackConfigFailureActionEnum>

Action to take if an rolled back task fails to run, or stops running during the rollback.

monitor: Option<i64>

Amount of time to monitor each rolled back task for failures, in nanoseconds.

max_failure_ratio: Option<f64>

The fraction of tasks that may fail during a rollback before the failure action is invoked, specified as a floating point number between 0 and 1.

order: Option<ServiceSpecRollbackConfigOrderEnum>

The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down.

Trait Implementations

impl Clone for ServiceSpecRollbackConfig[src]

impl Debug for ServiceSpecRollbackConfig[src]

impl Default for ServiceSpecRollbackConfig[src]

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

impl PartialEq<ServiceSpecRollbackConfig> for ServiceSpecRollbackConfig[src]

impl Serialize for ServiceSpecRollbackConfig[src]

impl StructuralPartialEq for ServiceSpecRollbackConfig[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> Instrument 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.