Trait ockam_entity::SecureChannelTrait[][src]

pub trait SecureChannelTrait {
    #[must_use]
    fn create_secure_channel<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context,
        route: Route,
        trust_policy: impl TrustPolicy,
        vault: &'life2 Address
    ) -> Pin<Box<dyn Future<Output = Result<Address>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn create_secure_channel_listener<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context,
        address: Address,
        trust_policy: impl TrustPolicy,
        vault: &'life2 Address
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }
Expand description

A trait that represents the two endpoints of a secure channel.

Required methods

#[must_use]
fn create_secure_channel<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context,
    route: Route,
    trust_policy: impl TrustPolicy,
    vault: &'life2 Address
) -> Pin<Box<dyn Future<Output = Result<Address>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Create mutually authenticated secure channel

#[must_use]
fn create_secure_channel_listener<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context,
    address: Address,
    trust_policy: impl TrustPolicy,
    vault: &'life2 Address
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Create mutually authenticated secure channel listener

Implementors

impl<P: ProfileTrait + Clone> SecureChannelTrait for P[src]

fn create_secure_channel<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context,
    route: Route,
    trust_policy: impl TrustPolicy,
    vault: &'life2 Address
) -> Pin<Box<dyn Future<Output = Result<Address>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Create mutually authenticated secure channel

fn create_secure_channel_listener<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context,
    address: Address,
    trust_policy: impl TrustPolicy,
    vault: &'life2 Address
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Create mutually authenticated secure channel listener