Trait WebPushClient

Source
pub trait WebPushClient {
    // Required method
    fn send<'life0, 'async_trait>(
        &'life0 self,
        message: WebPushMessage,
    ) -> Pin<Box<dyn Future<Output = Result<(), WebPushError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

An async client for sending the notification payload. Other features, such as thread safety, may vary by implementation.

Required Methods§

Source

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

Sends a notification. Never times out.

Implementors§