Struct rpc2::auth::PrivateKey
source · pub struct PrivateKey(_);
Implementations§
source§impl PrivateKey
impl PrivateKey
sourcepub fn decrypt_string(&self, encrypted_string: &str) -> Result<String>
pub fn decrypt_string(&self, encrypted_string: &str) -> Result<String>
Decrypt a base64-encoded string that was encrypted by the corresponding public key.
Auto Trait Implementations§
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
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