pub struct ServiceUpdateConfigBuilder<___State = __ServiceUpdateConfigBuilderInitialState> { /* private fields */ }
Expand description

Use builder syntax to set the required parameters and finish by calling the method Self::build_struct().

Implementations§

source§

impl<__Delay, __FailureAction, __MaxFailureRatio, __Monitor, __Order, __Parallelism> ServiceUpdateConfigBuilder<(__Delay, __FailureAction, __MaxFailureRatio, __Monitor, __Order, __Parallelism)>

source

pub fn build_struct(self) -> ServiceUpdateConfig
where __Delay: IntoSet<Option<Box<Option<String>>>, ServiceUpdateConfigBuilder__delay>, __FailureAction: IntoSet<Option<Box<Option<String>>>, ServiceUpdateConfigBuilder__failure_action>, __MaxFailureRatio: IntoSet<Option<Box<Option<String>>>, ServiceUpdateConfigBuilder__max_failure_ratio>, __Monitor: IntoSet<Option<Box<Option<String>>>, ServiceUpdateConfigBuilder__monitor>, __Order: IntoSet<Option<Box<Option<String>>>, ServiceUpdateConfigBuilder__order>, __Parallelism: IntoSet<Option<Box<Option<i32>>>, ServiceUpdateConfigBuilder__parallelism>,

Finishes building and returns the requested object.

source

pub fn maybe_delay( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::Delay
where __Delay: IsUnset,

Same as [Self::r#delay], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn delay( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::Delay
where __Delay: IsUnset,

Delay between task updates (ns|us|ms|s|m|h). Defaults to 0s.

source

pub fn maybe_failure_action( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::FailureAction
where __FailureAction: IsUnset,

Same as [Self::r#failure_action], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn failure_action( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::FailureAction
where __FailureAction: IsUnset,

Action on update failure: pause, continue or rollback. Defaults to pause.

source

pub fn maybe_max_failure_ratio( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::MaxFailureRatio
where __MaxFailureRatio: IsUnset,

Same as [Self::r#max_failure_ratio], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn max_failure_ratio( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::MaxFailureRatio
where __MaxFailureRatio: IsUnset,

Failure rate to tolerate during an update. Defaults to 0.0.

source

pub fn maybe_monitor( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::Monitor
where __Monitor: IsUnset,

Same as [Self::r#monitor], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn monitor( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::Monitor
where __Monitor: IsUnset,

Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to 5s.

source

pub fn maybe_order( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::Order
where __Order: IsUnset,

Same as [Self::r#order], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn order( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::Order
where __Order: IsUnset,

Update order: either ‘stop-first’ or ‘start-first’. Defaults to stop-first.

source

pub fn maybe_parallelism( self, value: Option<impl Into<Box<Option<i32>>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::Parallelism
where __Parallelism: IsUnset,

Same as [Self::r#parallelism], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn parallelism( self, value: impl Into<Box<Option<i32>>>, ) -> <Self as __ServiceUpdateConfigBuilderSetMember>::Parallelism
where __Parallelism: IsUnset,

Maximum number of tasks to be updated in one iteration. Defaults to 1

Auto Trait Implementations§

§

impl<___State> Freeze for ServiceUpdateConfigBuilder<___State>
where ___State: Freeze,

§

impl<___State> RefUnwindSafe for ServiceUpdateConfigBuilder<___State>
where ___State: RefUnwindSafe,

§

impl<___State> Send for ServiceUpdateConfigBuilder<___State>
where ___State: Send,

§

impl<___State> Sync for ServiceUpdateConfigBuilder<___State>
where ___State: Sync,

§

impl<___State> Unpin for ServiceUpdateConfigBuilder<___State>
where ___State: Unpin,

§

impl<___State> UnwindSafe for ServiceUpdateConfigBuilder<___State>
where ___State: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.