pub struct VapidKeyGenerator { /* private fields */ }Implementations§
Source§impl VapidKeyGenerator
impl VapidKeyGenerator
pub fn new() -> Result<Self, WebPushError>
pub fn secret_key_base64(&self) -> String
pub fn public_key_uncompressed(&self) -> Vec<u8> ⓘ
pub fn public_key_base64(&self) -> String
pub fn secret_key_bytes(&self) -> Vec<u8> ⓘ
pub fn secret_key_to_pem(&self) -> Result<String, WebPushError>
pub fn from_pem(pem_str: &str) -> Result<Self, WebPushError>
pub fn from_base64(encoded: &str) -> Result<Self, WebPushError>
pub fn to_es256_keypair(&self) -> ES256KeyPair
pub fn to_vapid_key(&self) -> VapidKey
Auto Trait Implementations§
impl Freeze for VapidKeyGenerator
impl RefUnwindSafe for VapidKeyGenerator
impl Send for VapidKeyGenerator
impl Sync for VapidKeyGenerator
impl Unpin for VapidKeyGenerator
impl UnwindSafe for VapidKeyGenerator
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