ControlPlaneApi

Trait ControlPlaneApi 

Source
pub trait ControlPlaneApi: Send + Sync {
    // Required methods
    fn create_data_plane_sessions<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SessionGrant>, CrpcClientError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn renew_data_plane_session<'life0, 'async_trait>(
        &'life0 self,
        addr: SocketAddr,
    ) -> Pin<Box<dyn Future<Output = Result<SessionGrant, CrpcClientError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

SNAP control plane API trait.

Required Methods§

Source

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

Creates SNAP data plane sessions for all data planes.

Source

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

Renews a SNAP data plane session for the given address.

Implementors§