Struct web_push_native::WebPushBuilder
source · [−]pub struct WebPushBuilder { /* private fields */ }
Implementations
sourceimpl WebPushBuilder
impl WebPushBuilder
pub fn new<'a>(uri: Uri, ua_public: PublicKey, ua_auth: Auth) -> Self
pub fn with_valid_duration(self, valid_duration: Duration) -> Self
pub fn with_vapid<T: ToString>(self, vapid_kp: ES256KeyPair, contact: T) -> Self
pub fn build<T: Into<Vec<u8>>>(
&self,
body: T
) -> Result<Request<Vec<u8>>, WebPushError>
Auto Trait Implementations
impl RefUnwindSafe for WebPushBuilder
impl Send for WebPushBuilder
impl Sync for WebPushBuilder
impl Unpin for WebPushBuilder
impl UnwindSafe for WebPushBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more