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 = Result<(), AgentError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn load_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
plan_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<PlanStoreData>, AgentError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn delete_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
plan_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn list_plans<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, AgentError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Required Methods§
fn save_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
plan: &'life1 ExecutionPlan,
metadata: Value,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn load_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
plan_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<PlanStoreData>, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
plan_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list_plans<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".