pub trait PushSender: Send + Sync {
// Required method
fn send<'a>(&'a self, batch: Vec<PushMessage>) -> PushFuture<'a>;
}Expand description
Outbound port for delivering notifications to devices.
Implementations split a batch into provider-sized chunks themselves. The returned outcomes cover every message in the batch, in no guaranteed order; match them to messages by token.
Required Methods§
Sourcefn send<'a>(&'a self, batch: Vec<PushMessage>) -> PushFuture<'a>
fn send<'a>(&'a self, batch: Vec<PushMessage>) -> PushFuture<'a>
Delivers a batch of notifications and reports the outcome of each.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".