Trait Hsm

Source
pub trait Hsm:
    Send
    + Sync
    + 'static {
    // Required methods
    fn request<'life0, 'async_trait>(
        &'life0 self,
        request: Request<HsmRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<HsmResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn ping<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Empty>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

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

Required Methods§

Source

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

Source

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

Implementors§