pub trait TaskflowComposable {
// Required methods
fn compose(&mut self, other: &Composition) -> ComposedInstance;
fn compose_after(
&mut self,
predecessors: &[TaskHandle],
other: &Composition,
) -> ComposedInstance;
fn compose_before(
&mut self,
other: &Composition,
successors: &[TaskHandle],
) -> ComposedInstance;
}Expand description
Helper trait for taskflow composition
Required Methods§
Sourcefn compose(&mut self, other: &Composition) -> ComposedInstance
fn compose(&mut self, other: &Composition) -> ComposedInstance
Compose another taskflow into this one
Sourcefn compose_after(
&mut self,
predecessors: &[TaskHandle],
other: &Composition,
) -> ComposedInstance
fn compose_after( &mut self, predecessors: &[TaskHandle], other: &Composition, ) -> ComposedInstance
Compose with predecessor dependencies
Sourcefn compose_before(
&mut self,
other: &Composition,
successors: &[TaskHandle],
) -> ComposedInstance
fn compose_before( &mut self, other: &Composition, successors: &[TaskHandle], ) -> ComposedInstance
Compose with successor dependencies