pub struct SenderCombinedKey<'s, 'r> { /* private fields */ }
Expand description
(Alice's private key
, Bob's public key
) pair.
(Alice is a sender and Bob a receiver.)
Implementations§
Source§impl<'s, 'r> SenderCombinedKey<'s, 'r>
impl<'s, 'r> SenderCombinedKey<'s, 'r>
Sourcepub fn new(
sender_private_key: &'s SenderPrivateKey,
receiver_public_key: &'r ReceiverPublicKey,
) -> SenderCombinedKey<'s, 'r>
pub fn new( sender_private_key: &'s SenderPrivateKey, receiver_public_key: &'r ReceiverPublicKey, ) -> SenderCombinedKey<'s, 'r>
Constructor.
Trait Implementations§
Source§impl<'s, 'r> Clone for SenderCombinedKey<'s, 'r>
impl<'s, 'r> Clone for SenderCombinedKey<'s, 'r>
Source§fn clone(&self) -> SenderCombinedKey<'s, 'r>
fn clone(&self) -> SenderCombinedKey<'s, 'r>
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<'s, 'r> Freeze for SenderCombinedKey<'s, 'r>
impl<'s, 'r> RefUnwindSafe for SenderCombinedKey<'s, 'r>
impl<'s, 'r> Send for SenderCombinedKey<'s, 'r>
impl<'s, 'r> Sync for SenderCombinedKey<'s, 'r>
impl<'s, 'r> Unpin for SenderCombinedKey<'s, 'r>
impl<'s, 'r> UnwindSafe for SenderCombinedKey<'s, 'r>
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