Trait avalanche_types::proto::pb::appsender::app_sender_server::AppSender
source · pub trait AppSender: Send + Sync + 'static {
// Required methods
fn send_app_request<'life0, 'async_trait>(
&'life0 self,
request: Request<SendAppRequestMsg>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_app_response<'life0, 'async_trait>(
&'life0 self,
request: Request<SendAppResponseMsg>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_app_gossip<'life0, 'async_trait>(
&'life0 self,
request: Request<SendAppGossipMsg>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_app_gossip_specific<'life0, 'async_trait>(
&'life0 self,
request: Request<SendAppGossipSpecificMsg>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_cross_chain_app_request<'life0, 'async_trait>(
&'life0 self,
request: Request<SendCrossChainAppRequestMsg>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_cross_chain_app_response<'life0, 'async_trait>(
&'life0 self,
request: Request<SendCrossChainAppResponseMsg>
) -> 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 AppSenderServer.