Skip to main content

ControlPlaneApi

Trait ControlPlaneApi 

Source
pub trait ControlPlaneApi: Send + Sync {
    // Required methods
    fn get_data_plane_address<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<GetDataPlaneAddressResponse, CrpcClientError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn register_snaptun_identity<'life0, 'async_trait>(
        &'life0 self,
        initiator_identity: PublicKey,
        psk_share: Option<[u8; 32]>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<[u8; 32]>, CrpcClientError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

SNAP control plane API trait.

Required Methods§

Source

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

Get the SNAP data plane address.

Source

fn register_snaptun_identity<'life0, 'async_trait>( &'life0 self, initiator_identity: PublicKey, psk_share: Option<[u8; 32]>, ) -> Pin<Box<dyn Future<Output = Result<Option<[u8; 32]>, CrpcClientError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Register a static identity for a snaptun connection.

Implementors§