pub enum KeyMaterial {
Rsa(RsaPublicKey, Option<RsaPrivateKey>),
Dsa(DsaPublicKey, Option<DsaPrivateKey>),
Elgamal(ElgamalPublicKey, Option<ElgamalPrivateKey>),
}Variants§
Rsa(RsaPublicKey, Option<RsaPrivateKey>)
Dsa(DsaPublicKey, Option<DsaPrivateKey>)
Elgamal(ElgamalPublicKey, Option<ElgamalPrivateKey>)
Implementations§
Source§impl KeyMaterial
impl KeyMaterial
Trait Implementations§
Source§impl Clone for KeyMaterial
impl Clone for KeyMaterial
Source§fn clone(&self) -> KeyMaterial
fn clone(&self) -> KeyMaterial
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeyMaterial
impl RefUnwindSafe for KeyMaterial
impl Send for KeyMaterial
impl Sync for KeyMaterial
impl Unpin for KeyMaterial
impl UnwindSafe for KeyMaterial
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