pub trait NewKeyExchanger {
    type Initiator: KeyExchanger + Send + Sync + 'static;
    type Responder: KeyExchanger + Send + Sync + 'static;

    fn initiator<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Initiator>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn responder<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Responder>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

A creator of both initiator and responder peers of a key exchange.

Required Associated Types

Initiator

Responder

Required Methods

Create a new Key Exchanger with the initiator role

Create a new Key Exchanger with the responder role

Implementors