Skip to main content

PlanStore

Trait PlanStore 

Source
pub trait PlanStore: Send + Sync {
    // Required methods
    fn save_plan<'life0, 'life1, 'async_trait>(
        &'life0 self,
        plan: &'life1 ExecutionPlan,
        metadata: Value,
    ) -> Pin<Box<dyn Future<Output = AgentResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn load_plan<'life0, 'life1, 'async_trait>(
        &'life0 self,
        plan_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = AgentResult<Option<PlanStoreData>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_plan<'life0, 'life1, 'async_trait>(
        &'life0 self,
        plan_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = AgentResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_plans<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = AgentResult<Vec<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn save_plan<'life0, 'life1, 'async_trait>( &'life0 self, plan: &'life1 ExecutionPlan, metadata: Value, ) -> Pin<Box<dyn Future<Output = AgentResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn load_plan<'life0, 'life1, 'async_trait>( &'life0 self, plan_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = AgentResult<Option<PlanStoreData>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete_plan<'life0, 'life1, 'async_trait>( &'life0 self, plan_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = AgentResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn list_plans<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AgentResult<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§