pub struct Dep {
pub target: TaskRef,
pub cond: EdgeCond,
}Expand description
A dependency on another task. The dependent becomes eligible once every edge is satisfied
and ends as Skipped as soon as one edge can no longer be satisfied.
Fields§
§target: TaskRefThe parent task.
cond: EdgeCondWhich parent outcomes satisfy the edge.
Implementations§
Source§impl Dep
impl Dep
Sourcepub fn on_success(target: impl Into<TaskRef>) -> Dep
pub fn on_success(target: impl Into<TaskRef>) -> Dep
Run after target succeeds.
Sourcepub fn on_complete(target: impl Into<TaskRef>) -> Dep
pub fn on_complete(target: impl Into<TaskRef>) -> Dep
Run after target ends, whatever its outcome (cleanup steps).
Sourcepub fn on_failure(target: impl Into<TaskRef>) -> Dep
pub fn on_failure(target: impl Into<TaskRef>) -> Dep
Run only if target fails or is dead-lettered (failure handlers).
Trait Implementations§
impl Eq for Dep
impl StructuralPartialEq for Dep
Auto Trait Implementations§
impl Freeze for Dep
impl RefUnwindSafe for Dep
impl Send for Dep
impl Sync for Dep
impl Unpin for Dep
impl UnsafeUnpin for Dep
impl UnwindSafe for Dep
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