pub struct DagBuilderThen<CONTEXT: Send + Sync, ERROR: Error + Send + Sync, RESOURCE: Clone + Debug + DeserializeOwned + Resource<DynamicType = ()> + Send + Sync, TASK: Task<CONTEXT, ERROR, RESOURCE>>(/* private fields */);Expand description
A DAG builder with the first group of tasks already configured.
Implementations§
Source§impl<CONTEXT: Send + Sync, ERROR: Error + Send + Sync, RESOURCE: Clone + Debug + DeserializeOwned + Resource<DynamicType = ()> + Send + Sync, TASK: Task<CONTEXT, ERROR, RESOURCE>> DagBuilderThen<CONTEXT, ERROR, RESOURCE, TASK>
impl<CONTEXT: Send + Sync, ERROR: Error + Send + Sync, RESOURCE: Clone + Debug + DeserializeOwned + Resource<DynamicType = ()> + Send + Sync, TASK: Task<CONTEXT, ERROR, RESOURCE>> DagBuilderThen<CONTEXT, ERROR, RESOURCE, TASK>
Sourcepub fn action(self, action: Action) -> Self
pub fn action(self, action: Action) -> Self
Define the final action of the DAG (when all tasks are completed).
Sourcepub fn requeue_delay(self, delay: Duration) -> Self
pub fn requeue_delay(self, delay: Duration) -> Self
Define the delay between two reconciliations.
Sourcepub fn then<TASKS: IntoIterator<Item = TASK>>(self, tasks: TASKS) -> Self
pub fn then<TASKS: IntoIterator<Item = TASK>>(self, tasks: TASKS) -> Self
Define the next group of tasks to run. It will be started when all tasks of the current group are completed.
Auto Trait Implementations§
impl<CONTEXT, ERROR, RESOURCE, TASK> Freeze for DagBuilderThen<CONTEXT, ERROR, RESOURCE, TASK>
impl<CONTEXT, ERROR, RESOURCE, TASK> RefUnwindSafe for DagBuilderThen<CONTEXT, ERROR, RESOURCE, TASK>
impl<CONTEXT, ERROR, RESOURCE, TASK> Send for DagBuilderThen<CONTEXT, ERROR, RESOURCE, TASK>
impl<CONTEXT, ERROR, RESOURCE, TASK> Sync for DagBuilderThen<CONTEXT, ERROR, RESOURCE, TASK>
impl<CONTEXT, ERROR, RESOURCE, TASK> Unpin for DagBuilderThen<CONTEXT, ERROR, RESOURCE, TASK>
impl<CONTEXT, ERROR, RESOURCE, TASK> UnwindSafe for DagBuilderThen<CONTEXT, ERROR, RESOURCE, TASK>
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