Struct libp2p_noise::KeypairIdentity
source · pub struct KeypairIdentity {
pub public: PublicKey,
pub signature: Option<Vec<u8>>,
}
Expand description
The associated public identity of a DH keypair.
Fields§
§public: PublicKey
The public identity key.
signature: Option<Vec<u8>>
The signature over the public DH key.
Trait Implementations§
source§impl Clone for KeypairIdentity
impl Clone for KeypairIdentity
source§fn clone(&self) -> KeypairIdentity
fn clone(&self) -> KeypairIdentity
Returns a copy 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 RefUnwindSafe for KeypairIdentity
impl Send for KeypairIdentity
impl Sync for KeypairIdentity
impl Unpin for KeypairIdentity
impl UnwindSafe for KeypairIdentity
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