pub struct KeyPair<A: AsymmetricKey>(/* private fields */);
Implementations§
Trait Implementations§
Source§impl<A: AsymmetricKey> Clone for KeyPair<A>
impl<A: AsymmetricKey> Clone for KeyPair<A>
Source§impl<A: AsymmetricKey> Debug for KeyPair<A>
impl<A: AsymmetricKey> Debug for KeyPair<A>
Source§impl<A: AsymmetricKey> Display for KeyPair<A>
impl<A: AsymmetricKey> Display for KeyPair<A>
Auto Trait Implementations§
impl<A> Freeze for KeyPair<A>where
<A as AsymmetricKey>::Secret: Freeze,
<<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: Freeze,
impl<A> RefUnwindSafe for KeyPair<A>where
<A as AsymmetricKey>::Secret: RefUnwindSafe,
<<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: RefUnwindSafe,
impl<A> Send for KeyPair<A>where
<A as AsymmetricKey>::Secret: Send,
<<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: Send,
impl<A> Sync for KeyPair<A>where
<A as AsymmetricKey>::Secret: Sync,
<<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: Sync,
impl<A> Unpin for KeyPair<A>where
<A as AsymmetricKey>::Secret: Unpin,
<<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: Unpin,
impl<A> UnwindSafe for KeyPair<A>where
<A as AsymmetricKey>::Secret: UnwindSafe,
<<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more