Skip to main content

EnhanceLogStore

Trait EnhanceLogStore 

Source
pub trait EnhanceLogStore: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn append<'life0, 'async_trait>(
        &'life0 self,
        entry: EnhanceLogEntry,
    ) -> Pin<Box<dyn Future<Output = Result<(), EnhanceLogStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        issue_id: &'life1 IssueId,
    ) -> Pin<Box<dyn Future<Output = Result<EnhanceLogEntry, EnhanceLogStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_by_blueprint<'life0, 'life1, 'async_trait>(
        &'life0 self,
        blueprint_id: &'life1 BlueprintId,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<EnhanceLogEntry>, EnhanceLogStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_all<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<EnhanceLogEntry>, EnhanceLogStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Append-only persistence interface for EnhanceLogEntry records.

Required Methods§

Source

fn name(&self) -> &str

Backend name — for diagnostics/logging.

Source

fn append<'life0, 'async_trait>( &'life0 self, entry: EnhanceLogEntry, ) -> Pin<Box<dyn Future<Output = Result<(), EnhanceLogStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Append a new entry. Returns Conflict if entry.issue_id was already recorded.

Source

fn get<'life0, 'life1, 'async_trait>( &'life0 self, issue_id: &'life1 IssueId, ) -> Pin<Box<dyn Future<Output = Result<EnhanceLogEntry, EnhanceLogStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch the entry for a single Issue.

Source

fn list_by_blueprint<'life0, 'life1, 'async_trait>( &'life0 self, blueprint_id: &'life1 BlueprintId, ) -> Pin<Box<dyn Future<Output = Result<Vec<EnhanceLogEntry>, EnhanceLogStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

List every entry for a Blueprint, ascending by ts_ms.

Source

fn list_all<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<EnhanceLogEntry>, EnhanceLogStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List every entry across all Blueprints, ascending by ts_ms.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§