[][src]Struct susyp2p_noise::Keypair

pub struct Keypair<T: Zeroize> { /* fields omitted */ }

DH keypair.

Methods

impl Keypair<X25519>[src]

pub fn new() -> Keypair<X25519>[src]

Create a new X25519 keypair.

impl<T: Zeroize> Keypair<T>[src]

pub fn public(&self) -> &PublicKey<T>[src]

The public key of the DH keypair.

pub fn secret(&self) -> &SecretKey<T>[src]

The secret key of the DH keypair.

Trait Implementations

impl<T: Clone + Zeroize> Clone for Keypair<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Send for Keypair<T> where
    T: Send

impl<T> Sync for Keypair<T> where
    T: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Erased for T