Crate atomic_web_push

Source

Modules§

engine
Provides the Engine abstraction and out of the box implementations.
request_builder
Functions used to send and consume push http messages. This module can be used to build custom clients.

Macros§

log_debug

Structs§

PartialVapidSignatureBuilder
A VapidSignatureBuilder without VAPID subscription info.
ReqwestWebPushClient
An async client for sending the notification payload.
SubscriptionInfo
Client info for sending the notification. Maps the values from browser’s subscription info JSON data (AKA pushSubscription object).
SubscriptionKeys
Encryption keys from the client.
VapidSignature
A struct representing a VAPID signature. Should be generated using the VapidSignatureBuilder.
VapidSignatureBuilder
A VAPID signature builder for generating an optional signature to the request. This encryption is required for payloads in all current and future browsers.
WebPushMessage
Everything needed to send a push notification to the user.
WebPushMessageBuilder
The main class for creating a notification payload.
WebPushPayload
The push content payload, already in an encrypted form.

Enums§

ContentEncoding
Content encoding profiles.
Urgency
WebPushError

Traits§

Engine
An Engine provides low-level encoding and decoding operations that all other higher-level parts of the API use. Users of the library will generally not need to implement this.
WebPushClient
An async client for sending the notification payload. Other features, such as thread safety, may vary by implementation.