pub trait SessionSearchIndexWriter: Send + Sync {
// Required method
fn apply<'life0, 'life1, 'async_trait>(
&'life0 self,
mutations: &'life1 [SessionSearchMutation],
) -> Pin<Box<dyn Future<Output = Result<SessionSearchCheckpoint, SessionSearchIndexError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Optional mutation target used by local or external indexes.
Required Methods§
Sourcefn apply<'life0, 'life1, 'async_trait>(
&'life0 self,
mutations: &'life1 [SessionSearchMutation],
) -> Pin<Box<dyn Future<Output = Result<SessionSearchCheckpoint, SessionSearchIndexError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn apply<'life0, 'life1, 'async_trait>(
&'life0 self,
mutations: &'life1 [SessionSearchMutation],
) -> Pin<Box<dyn Future<Output = Result<SessionSearchCheckpoint, SessionSearchIndexError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Apply mutations idempotently and durably.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".