Skip to main content

ConsoleLogStore

Trait ConsoleLogStore 

Source
pub trait ConsoleLogStore: Send + Sync {
    // Required methods
    fn append_if_absent<'life0, 'async_trait>(
        &'life0 self,
        frame: NewConsoleFrame,
    ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<AppendOutcome>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_frame_status<'life0, 'life1, 'async_trait>(
        &'life0 self,
        frame_id: &'life1 str,
        status: ConsoleFrameStatus,
    ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<Option<ConsoleFrame>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn query_frames<'life0, 'async_trait>(
        &'life0 self,
        query: ConsoleTimelineQuery,
    ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<ConsoleTimelinePage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn frame_by_dedupe_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        dedupe_key: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<Option<ConsoleFrame>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn latest_cursor<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<Option<ConsoleCursor>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn clear_frames<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn record_source_watermark<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        runtime_key: &'life1 str,
        source_kind: ConsoleFrameSourceKind,
        source_cursor: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn source_watermark<'life0, 'life1, 'async_trait>(
        &'life0 self,
        runtime_key: &'life1 str,
        source_kind: ConsoleFrameSourceKind,
    ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<Option<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn query_windowed_frames<'life0, 'async_trait>(
        &'life0 self,
        query: ConsoleTimelineWindowQuery,
    ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<ConsoleTimelineWindowPage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn append_if_absent<'life0, 'async_trait>( &'life0 self, frame: NewConsoleFrame, ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<AppendOutcome>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_frame_status<'life0, 'life1, 'async_trait>( &'life0 self, frame_id: &'life1 str, status: ConsoleFrameStatus, ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<Option<ConsoleFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn query_frames<'life0, 'async_trait>( &'life0 self, query: ConsoleTimelineQuery, ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<ConsoleTimelinePage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn frame_by_dedupe_key<'life0, 'life1, 'async_trait>( &'life0 self, dedupe_key: &'life1 str, ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<Option<ConsoleFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn latest_cursor<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<Option<ConsoleCursor>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn clear_frames<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn record_source_watermark<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, runtime_key: &'life1 str, source_kind: ConsoleFrameSourceKind, source_cursor: &'life2 str, ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn source_watermark<'life0, 'life1, 'async_trait>( &'life0 self, runtime_key: &'life1 str, source_kind: ConsoleFrameSourceKind, ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn query_windowed_frames<'life0, 'async_trait>( &'life0 self, query: ConsoleTimelineWindowQuery, ) -> Pin<Box<dyn Future<Output = ConsoleLogResult<ConsoleTimelineWindowPage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§