[][src]Struct openpgp_dr::PreKeyPair

pub struct PreKeyPair<D: DH> { /* fields omitted */ }

Diffie-Hellman parameters and shared secret.

Implementations

impl<D: DH> PreKeyPair<D>[src]

pub fn new() -> Result<Self>[src]

Creates a new pre-key pair.

pub fn pre_key(&self) -> PreKey<D>[src]

Derives the part of the pre-key pair to be communicated to the peer.

Auto Trait Implementations

impl<D> RefUnwindSafe for PreKeyPair<D> where
    <D as DH>::Public: RefUnwindSafe,
    <D as DH>::Secret: RefUnwindSafe

impl<D> Send for PreKeyPair<D> where
    <D as DH>::Public: Send,
    <D as DH>::Secret: Send

impl<D> Sync for PreKeyPair<D> where
    <D as DH>::Public: Sync,
    <D as DH>::Secret: Sync

impl<D> Unpin for PreKeyPair<D> where
    <D as DH>::Public: Unpin,
    <D as DH>::Secret: Unpin

impl<D> UnwindSafe for PreKeyPair<D> where
    <D as DH>::Public: UnwindSafe,
    <D as DH>::Secret: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.