Trait breez_sdk_core::grpc::ctp_server::Ctp

pub trait Ctp:
    Send
    + Sync
    + 'static {
    // Required methods
    fn join_ctp_session<'life0, 'async_trait>(
        &'life0 self,
        request: Request<JoinCtpSessionRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<JoinCtpSessionResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn terminate_ctp_session<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TerminateCtpSessionRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TerminateCtpSessionResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with CtpServer.

Required Methods§

fn join_ctp_session<'life0, 'async_trait>( &'life0 self, request: Request<JoinCtpSessionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<JoinCtpSessionResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn terminate_ctp_session<'life0, 'async_trait>( &'life0 self, request: Request<TerminateCtpSessionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TerminateCtpSessionResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§