Trait avalanche_types::rpcchainvm::common::apphandler::AppHandlerServer
source · [−]pub trait AppHandlerServer {
fn app_request<'life0, 'async_trait>(
&'life0 self,
_request: Request<AppRequestMsg>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn app_request_failed<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: &'life1 Id,
request_id: u32
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn app_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
node_id: &'life1 Id,
request_id: u32,
response: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn app_gossip<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
node_id: &'life1 Id,
msg: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}
Expand description
gRPC Server AppHandler allows for conditional traits to be implemented for the gRPC server service.