pub trait SessionSearchProvider: Send + Sync {
// Required methods
fn capabilities(&self) -> SessionSearchCapabilities;
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 SessionSearchScope,
query: SessionSearchQuery,
) -> Pin<Box<dyn Future<Output = Result<SessionSearchPage, SessionSearchError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Read-only provider for session discovery projections.
Required Methods§
Sourcefn capabilities(&self) -> SessionSearchCapabilities
fn capabilities(&self) -> SessionSearchCapabilities
Advertise behavior supported by this provider instance.
Sourcefn search<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 SessionSearchScope,
query: SessionSearchQuery,
) -> Pin<Box<dyn Future<Output = Result<SessionSearchPage, SessionSearchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 SessionSearchScope,
query: SessionSearchQuery,
) -> Pin<Box<dyn Future<Output = Result<SessionSearchPage, SessionSearchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search within a host-constructed authorization scope.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".