pub trait ContextPlanner:
Send
+ Sync
+ 'static {
// Required methods
fn id(&self) -> String;
fn plan<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 ContextQuery,
provider_blocks: Vec<ContextBlock>,
) -> Pin<Box<dyn Future<Output = Result<ContextPlan, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}Required Methods§
fn id(&self) -> String
fn plan<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 ContextQuery,
provider_blocks: Vec<ContextBlock>,
) -> Pin<Box<dyn Future<Output = Result<ContextPlan, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".