[][src]Struct bollard_stubs::models::ServiceSpecUpdateConfig

pub struct ServiceSpecUpdateConfig {
    pub parallelism: Option<i64>,
    pub delay: Option<i64>,
    pub failure_action: Option<ServiceSpecUpdateConfigFailureActionEnum>,
    pub monitor: Option<i64>,
    pub max_failure_ratio: Option<f64>,
    pub order: Option<ServiceSpecUpdateConfigOrderEnum>,
}

Specification for the update strategy of the service.

Fields

parallelism: Option<i64>

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

delay: Option<i64>

Amount of time between updates, in nanoseconds.

failure_action: Option<ServiceSpecUpdateConfigFailureActionEnum>

Action to take if an updated task fails to run, or stops running during the update.

monitor: Option<i64>

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

max_failure_ratio: Option<f64>

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

order: Option<ServiceSpecUpdateConfigOrderEnum>

The order of operations when rolling out an updated 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 ServiceSpecUpdateConfig[src]

impl Debug for ServiceSpecUpdateConfig[src]

impl Default for ServiceSpecUpdateConfig[src]

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

impl PartialEq<ServiceSpecUpdateConfig> for ServiceSpecUpdateConfig[src]

impl Serialize for ServiceSpecUpdateConfig[src]

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