Skip to main content

EventReader

Trait EventReader 

Source
pub trait EventReader: Send + Sync {
    // Required method
    fn read_page<'life0, 'async_trait>(
        &'life0 self,
        request: EventReadRequest,
    ) -> Pin<Box<dyn Future<Output = Result<EventPage, EventLogError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Bounded, ordered reader for canonical session events.

Required Methods§

Source

fn read_page<'life0, 'async_trait>( &'life0 self, request: EventReadRequest, ) -> Pin<Box<dyn Future<Output = Result<EventPage, EventLogError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Read one page. The first page fixes a snapshot high-watermark; continuations cannot observe concurrent appends and therefore neither skip nor duplicate.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§