Skip to main content

SessionSearchProvider

Trait SessionSearchProvider 

Source
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§

Source

fn capabilities(&self) -> SessionSearchCapabilities

Advertise behavior supported by this provider instance.

Source

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".

Implementors§