Trait ockam_core::NewKeyExchanger
source · pub trait NewKeyExchanger {
type Initiator: KeyExchanger;
type Responder: KeyExchanger;
// 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§
sourcetype Initiator: KeyExchanger
type Initiator: KeyExchanger
Initiator
sourcetype Responder: KeyExchanger
type Responder: KeyExchanger
Responder