Trait avalanche_proto::appsender::app_sender_server::AppSender
source · [−]pub trait AppSender: Send + Sync + 'static {
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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with AppSenderServer.
Required Methods
sourcefn send_app_request<'life0, 'async_trait>(
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
'life0: 'async_trait,
Self: 'async_trait,
sourcefn send_app_response<'life0, 'async_trait>(