Skip to main content

EventsByTagQuery

Trait EventsByTagQuery 

Source
pub trait EventsByTagQuery: Send + Sync {
    // Required method
    fn events_by_tag<'life0, 'life1, 'async_trait>(
        &'life0 self,
        tag: &'life1 Tag,
        offset: Offset,
        mode: QueryMode,
    ) -> Pin<Box<dyn Future<Output = PersistenceResult<QueryStream<EventEnvelope>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Capability for globally ordered event queries by tag.

Required Methods§

Source

fn events_by_tag<'life0, 'life1, 'async_trait>( &'life0 self, tag: &'life1 Tag, offset: Offset, mode: QueryMode, ) -> Pin<Box<dyn Future<Output = PersistenceResult<QueryStream<EventEnvelope>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Queries events carrying tag, resuming gaplessly from offset.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§