Struct bollard::service::ServiceSpecRollbackConfig [−][src]
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]
pub fn clone(&self) -> ServiceSpecRollbackConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ServiceSpecRollbackConfig
[src]
impl Default for ServiceSpecRollbackConfig
[src]
pub fn default() -> ServiceSpecRollbackConfig
[src]
impl<'de> Deserialize<'de> for ServiceSpecRollbackConfig
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ServiceSpecRollbackConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<ServiceSpecRollbackConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl PartialEq<ServiceSpecRollbackConfig> for ServiceSpecRollbackConfig
[src]
pub fn eq(&self, other: &ServiceSpecRollbackConfig) -> bool
[src]
pub fn ne(&self, other: &ServiceSpecRollbackConfig) -> bool
[src]
impl Serialize for ServiceSpecRollbackConfig
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralPartialEq for ServiceSpecRollbackConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for ServiceSpecRollbackConfig
impl Send for ServiceSpecRollbackConfig
impl Sync for ServiceSpecRollbackConfig
impl Unpin for ServiceSpecRollbackConfig
impl UnwindSafe for ServiceSpecRollbackConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,