pub struct KeyPair<SK: Zeroize, PK> { /* private fields */ }Expand description
A generic key pair bundling a secret key and its corresponding public key.
The secret half is zeroized when the pair is dropped (via the Zeroize
bound and explicit Drop implementation).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<SK, PK> Freeze for KeyPair<SK, PK>
impl<SK, PK> RefUnwindSafe for KeyPair<SK, PK>where
SK: RefUnwindSafe,
PK: RefUnwindSafe,
impl<SK, PK> Send for KeyPair<SK, PK>
impl<SK, PK> Sync for KeyPair<SK, PK>
impl<SK, PK> Unpin for KeyPair<SK, PK>
impl<SK, PK> UnsafeUnpin for KeyPair<SK, PK>where
SK: UnsafeUnpin,
PK: UnsafeUnpin,
impl<SK, PK> UnwindSafe for KeyPair<SK, PK>where
SK: UnwindSafe,
PK: UnwindSafe,
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