pub struct VapidSignature { /* private fields */ }Expand description
VAPID (Voluntary Application Server Identification) signature
Implementations§
Source§impl VapidSignature
impl VapidSignature
Sourcepub fn sign<T: ToString>(
endpoint: &Uri,
valid_duration: Duration,
contact: T,
key: &ES256KeyPair,
) -> Result<VapidSignature, Error>
pub fn sign<T: ToString>( endpoint: &Uri, valid_duration: Duration, contact: T, key: &ES256KeyPair, ) -> Result<VapidSignature, Error>
Creates and signs a new VapidSignature which can be used
as a HTTP header value.
Trait Implementations§
Source§impl Clone for VapidSignature
impl Clone for VapidSignature
Source§fn clone(&self) -> VapidSignature
fn clone(&self) -> VapidSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VapidSignature
impl Debug for VapidSignature
Source§impl Display for VapidSignature
impl Display for VapidSignature
Source§impl From<VapidSignature> for HeaderValue
impl From<VapidSignature> for HeaderValue
Source§fn from(signature: VapidSignature) -> Self
fn from(signature: VapidSignature) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VapidSignature
impl RefUnwindSafe for VapidSignature
impl Send for VapidSignature
impl Sync for VapidSignature
impl Unpin for VapidSignature
impl UnsafeUnpin for VapidSignature
impl UnwindSafe for VapidSignature
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