pub trait PersistenceIdsQuery: Send + Sync {
// Required method
fn persistence_ids<'life0, 'async_trait>(
&'life0 self,
mode: QueryMode,
) -> Pin<Box<dyn Future<Output = PersistenceResult<QueryStream<PersistenceId>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Capability for discovering persistence ids known to a journal.
Required Methods§
Sourcefn persistence_ids<'life0, 'async_trait>(
&'life0 self,
mode: QueryMode,
) -> Pin<Box<dyn Future<Output = PersistenceResult<QueryStream<PersistenceId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn persistence_ids<'life0, 'async_trait>(
&'life0 self,
mode: QueryMode,
) -> Pin<Box<dyn Future<Output = PersistenceResult<QueryStream<PersistenceId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Queries each known persistence id once in backend discovery order.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".