pub trait LineageContextProvider:
Debug
+ Send
+ Sync {
// Required method
fn context<'life0, 'life1, 'async_trait>(
&'life0 self,
session_state: &'life1 SessionState,
) -> Pin<Box<dyn Future<Output = LineageContext> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Supplies per-query LineageContext. Implemented by the host integration.
Required Methods§
Sourcefn context<'life0, 'life1, 'async_trait>(
&'life0 self,
session_state: &'life1 SessionState,
) -> Pin<Box<dyn Future<Output = LineageContext> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn context<'life0, 'life1, 'async_trait>(
&'life0 self,
session_state: &'life1 SessionState,
) -> Pin<Box<dyn Future<Output = LineageContext> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns the LineageContext for a query, given its session state.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".