Skip to main content

PushSubscriptionReader

Trait PushSubscriptionReader 

Source
pub trait PushSubscriptionReader: Send + Sync {
    // Required methods
    fn get_push_subscriptions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        wallet: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PushSubscriptionRecord>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn count_push_subscriptions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        wallet: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn push_subscription_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        wallet: &'life1 str,
        endpoint: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Read-only push subscription queries.

Required Methods§

Source

fn get_push_subscriptions<'life0, 'life1, 'async_trait>( &'life0 self, wallet: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<PushSubscriptionRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Load all push subscriptions for a wallet.

Source

fn count_push_subscriptions<'life0, 'life1, 'async_trait>( &'life0 self, wallet: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Count push subscriptions for a wallet.

Source

fn push_subscription_exists<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, wallet: &'life1 str, endpoint: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Check if a specific endpoint exists for a wallet.

Implementors§