Struct web_push::IsahcWebPushClient
source · pub struct IsahcWebPushClient { /* private fields */ }
Expand description
An async client for sending the notification payload. This client is expensive to create, and should be reused.
This client is thread-safe. Clones of this client will share the same underlying resources, so cloning is a cheap and effective method to provide access to the client.
This client is built on isahc
, and will therefore work on any async executor.
Implementations§
source§impl IsahcWebPushClient
impl IsahcWebPushClient
sourcepub fn new() -> Result<Self, WebPushError>
pub fn new() -> Result<Self, WebPushError>
Creates a new client. Can fail under resource depletion.
Trait Implementations§
source§impl Clone for IsahcWebPushClient
impl Clone for IsahcWebPushClient
source§fn clone(&self) -> IsahcWebPushClient
fn clone(&self) -> IsahcWebPushClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for IsahcWebPushClient
impl Default for IsahcWebPushClient
source§impl WebPushClient for IsahcWebPushClient
impl WebPushClient for IsahcWebPushClient
Auto Trait Implementations§
impl !RefUnwindSafe for IsahcWebPushClient
impl Send for IsahcWebPushClient
impl Sync for IsahcWebPushClient
impl Unpin for IsahcWebPushClient
impl !UnwindSafe for IsahcWebPushClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more