pub struct StepBuilder<'a, T, F, C>where
T: Serialize + DeserializeOwned + Send + 'static,
F: Future<Output = Result<T>> + Send + 'a,
C: Future<Output = Result<()>> + Send + 'a,{ /* private fields */ }Expand description
Builder for configuring and executing a step.
Implementations§
Source§impl<'a, T, F, C> StepBuilder<'a, T, F, C>
impl<'a, T, F, C> StepBuilder<'a, T, F, C>
Sourcepub fn compensate<CF>(self, f: CF) -> Self
pub fn compensate<CF>(self, f: CF) -> Self
Set the compensation function.
Sourcepub fn is_optional(&self) -> bool
pub fn is_optional(&self) -> bool
Check if step is optional.
Sourcepub fn retry_count(&self) -> u32
pub fn retry_count(&self) -> u32
Get retry count.
Sourcepub fn retry_delay(&self) -> Duration
pub fn retry_delay(&self) -> Duration
Get retry delay.
Sourcepub fn get_timeout(&self) -> Option<Duration>
pub fn get_timeout(&self) -> Option<Duration>
Get timeout.
Auto Trait Implementations§
impl<'a, T, F, C> Freeze for StepBuilder<'a, T, F, C>
impl<'a, T, F, C> !RefUnwindSafe for StepBuilder<'a, T, F, C>
impl<'a, T, F, C> Send for StepBuilder<'a, T, F, C>
impl<'a, T, F, C> !Sync for StepBuilder<'a, T, F, C>
impl<'a, T, F, C> Unpin for StepBuilder<'a, T, F, C>
impl<'a, T, F, C> !UnwindSafe for StepBuilder<'a, T, F, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more