Struct apns2::ApnsSync
[−]
[src]
pub struct ApnsSync { /* fields omitted */ }
Methods
impl ApnsSync
[src]
fn new(auth: Auth) -> Result<Self, Error>
[src]
fn with_certificate<P: AsRef<Path>>(
path: P,
passphrase: Option<String>
) -> Result<ApnsSync, Error>
[src]
path: P,
passphrase: Option<String>
) -> Result<ApnsSync, Error>
fn set_verbose(&mut self, verbose: bool)
[src]
Enable/disable verbose debug logging to stderr.
fn set_production(&mut self, production: bool)
[src]
Set API endpoint to use (production or development sandbox).
fn disable_delivery_for_testing(&mut self)
[src]
ATTENTION: This completely disables actual communication with the APNS api.
No connection will be established.
Useful for integration tests in a larger application when nothing should actually be sent.
fn send(&self, notification: Notification) -> Result<Uuid, SendError>
[src]
Send a notification. Returns the UUID (either the configured one, or the one returned by the api).