Skip to main content

PushReceiptSource

Trait PushReceiptSource 

Source
pub trait PushReceiptSource: Send + Sync {
    // Required method
    fn receipts<'a>(
        &'a self,
        tickets: Vec<PushTicketId>,
    ) -> PushReceiptFuture<'a>;
}
Expand description

Outbound port for reading the receipts of accepted notifications.

Implementations split the IDs into provider-sized requests themselves.

Required Methods§

Source

fn receipts<'a>(&'a self, tickets: Vec<PushTicketId>) -> PushReceiptFuture<'a>

Fetches the settled receipts for the given tickets.

A ticket the provider has not settled yet is absent from the map.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§