pub trait CosmoInterface:
Send
+ Sync
+ 'static {
// Required methods
fn ping<'life0, 'async_trait>(
&'life0 self,
request: Request<()>,
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn simple_action<'life0, 'async_trait>(
&'life0 self,
request: Request<SimpleActionReq>,
) -> Pin<Box<dyn Future<Output = Result<Response<SimpleActionRsp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn subscribe<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeReq>,
) -> Pin<Box<dyn Future<Output = Result<Response<SubscribeRsp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn subscribe_card<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCardReq>,
) -> Pin<Box<dyn Future<Output = Result<Response<SubscribeCardRsp>, 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 CosmoInterfaceServer.