Struct web_push::WebPushClient [−][src]
pub struct WebPushClient { /* fields omitted */ }
Expand description
An async client for sending the notification payload. This client is expensive to create, and should be reused.
This client is built on isahc
, and will therefore work on any async executor.
Implementations
Creates a new client. Can fail under resource depletion.
Sends a notification. Never times out.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for WebPushClient
impl Send for WebPushClient
impl Sync for WebPushClient
impl Unpin for WebPushClient
impl !UnwindSafe for WebPushClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more