Skip to main content

EventStore

Trait EventStore 

Source
pub trait EventStore:
    Send
    + Sync
    + Clone
    + 'static {
    // Required method
    fn fetch_events_since(
        &self,
        after: i64,
        limit: u32,
    ) -> impl Future<Output = Result<Vec<StoredEvent>>> + Send;
}
Expand description

Event store operations needed for projection replay.

Required Methods§

Source

fn fetch_events_since( &self, after: i64, limit: u32, ) -> impl Future<Output = Result<Vec<StoredEvent>>> + Send

Fetch events after the provided global sequence (exclusive).

Returns events ordered by global_sequence ascending.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§