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

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

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

Required Associated Types§

source

type Initiator: KeyExchanger + Send + Sync + 'static

Initiator

source

type Responder: KeyExchanger + Send + Sync + 'static

Responder

Required Methods§

source

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

Create a new Key Exchanger with the initiator role

source

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

Create a new Key Exchanger with the responder role

Implementors§