Skip to main content

PushNotificationProvider

Trait PushNotificationProvider 

Source
pub trait PushNotificationProvider: Send + Sync {
    // Required methods
    fn send_push<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        device_token: &'life1 str,
        content: &'life2 PushNotificationContent,
    ) -> Pin<Box<dyn Future<Output = Result<String, PushError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_delivery_status<'life0, 'life1, 'async_trait>(
        &'life0 self,
        message_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<DeliveryStatus, PushError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Push notification provider trait

Required Methods§

Source

fn send_push<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, device_token: &'life1 str, content: &'life2 PushNotificationContent, ) -> Pin<Box<dyn Future<Output = Result<String, PushError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Send push notification

Source

fn get_delivery_status<'life0, 'life1, 'async_trait>( &'life0 self, message_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<DeliveryStatus, PushError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get push delivery status

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§