Skip to main content

DynamicPlanner

Trait DynamicPlanner 

Source
pub trait DynamicPlanner<S: StateSchema>: Send + Sync {
    // Required method
    fn plan<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tasks: &'life1 [DynamicTask],
        current_state: &'life2 S,
    ) -> Pin<Box<dyn Future<Output = Result<DynamicInjection<S>, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Planner trait for converting external tasks into graph nodes/edges at runtime.

Required Methods§

Source

fn plan<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tasks: &'life1 [DynamicTask], current_state: &'life2 S, ) -> Pin<Box<dyn Future<Output = Result<DynamicInjection<S>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Given pending tasks and current state, produce nodes/edges to inject.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§