Skip to main content

FeedbackStore

Trait FeedbackStore 

Source
pub trait FeedbackStore:
    Send
    + Sync
    + Debug {
    // Required methods
    fn create<'life0, 'async_trait>(
        &'life0 self,
        thread: FeedbackThread,
        client_token_hash: String,
    ) -> Pin<Box<dyn Future<Output = Result<(), FeedbackStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get<'life0, 'async_trait>(
        &'life0 self,
        id: FeedbackId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<FeedbackThread>, FeedbackStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_for_client<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: FeedbackId,
        client_token_hash: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<FeedbackThread>, FeedbackStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list<'life0, 'async_trait>(
        &'life0 self,
        filter: FeedbackListFilter,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<FeedbackSummary>, FeedbackStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn save<'life0, 'async_trait>(
        &'life0 self,
        thread: FeedbackThread,
        expected_revision: u64,
    ) -> Pin<Box<dyn Future<Output = Result<(), FeedbackStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn ready<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), FeedbackStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn create<'life0, 'async_trait>( &'life0 self, thread: FeedbackThread, client_token_hash: String, ) -> Pin<Box<dyn Future<Output = Result<(), FeedbackStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get<'life0, 'async_trait>( &'life0 self, id: FeedbackId, ) -> Pin<Box<dyn Future<Output = Result<Option<FeedbackThread>, FeedbackStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_for_client<'life0, 'life1, 'async_trait>( &'life0 self, id: FeedbackId, client_token_hash: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<FeedbackThread>, FeedbackStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn list<'life0, 'async_trait>( &'life0 self, filter: FeedbackListFilter, ) -> Pin<Box<dyn Future<Output = Result<Vec<FeedbackSummary>, FeedbackStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn save<'life0, 'async_trait>( &'life0 self, thread: FeedbackThread, expected_revision: u64, ) -> Pin<Box<dyn Future<Output = Result<(), FeedbackStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

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

Bounded readiness check for deployment health reporting.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§