Skip to main content

Replanner

Trait Replanner 

Source
pub trait Replanner: Send + Sync {
    // Required method
    fn replan<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        goal: &'life1 str,
        digest: &'life2 str,
        current: &'life3 Plan,
    ) -> Pin<Box<dyn Future<Output = Result<Plan, RinneError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             Self: 'async_trait;
}
Expand description

Amends a plan in light of new state. Implemented by the conductor.

Required Methods§

Source

fn replan<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, goal: &'life1 str, digest: &'life2 str, current: &'life3 Plan, ) -> Pin<Box<dyn Future<Output = Result<Plan, RinneError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: 'async_trait,

Produce an amended plan given the goal, a digest of current state, and the plan being revised.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§