pub struct KeyPair<P: Zeroize, S: Zeroize> {
pub public: P,
pub secret: S,
}
Expand description
A zeroize-on-drop container for keys
Fields§
§public: P
Public key
secret: S
Secret (private) key
Trait Implementations§
Auto Trait Implementations§
impl<P, S> Freeze for KeyPair<P, S>
impl<P, S> RefUnwindSafe for KeyPair<P, S>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<P, S> Send for KeyPair<P, S>
impl<P, S> Sync for KeyPair<P, S>
impl<P, S> Unpin for KeyPair<P, S>
impl<P, S> UnwindSafe for KeyPair<P, S>where
P: UnwindSafe,
S: 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