Skip to main content

TaskflowComposable

Trait TaskflowComposable 

Source
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§

Source

fn compose(&mut self, other: &Composition) -> ComposedInstance

Compose another taskflow into this one

Source

fn compose_after( &mut self, predecessors: &[TaskHandle], other: &Composition, ) -> ComposedInstance

Compose with predecessor dependencies

Source

fn compose_before( &mut self, other: &Composition, successors: &[TaskHandle], ) -> ComposedInstance

Compose with successor dependencies

Implementors§