Skip to main content

DurableStateChangesQuery

Trait DurableStateChangesQuery 

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

Capability for querying coalesced latest durable-state changes by tag.

Required Methods§

Source

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

Queries latest changes carrying tag, resuming gaplessly from offset.

Multiple rapid revisions for one persistence id may be coalesced, but the latest revision for that id must eventually be emitted.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§