Trait Service
pub trait Service:
Send
+ Sync
+ 'static {
// Required methods
fn simulate<'life0, 'async_trait>(
&'life0 self,
request: Request<SimulateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SimulateResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_tx<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTxRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetTxResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn broadcast_tx<'life0, 'async_trait>(
&'life0 self,
request: Request<BroadcastTxRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BroadcastTxResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_txs_event<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTxsEventRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetTxsEventResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_block_with_txs<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlockWithTxsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockWithTxsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn tx_decode<'life0, 'async_trait>(
&'life0 self,
request: Request<TxDecodeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TxDecodeResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn tx_encode<'life0, 'async_trait>(
&'life0 self,
request: Request<TxEncodeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TxEncodeResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn tx_encode_amino<'life0, 'async_trait>(
&'life0 self,
request: Request<TxEncodeAminoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TxEncodeAminoResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn tx_decode_amino<'life0, 'async_trait>(
&'life0 self,
request: Request<TxDecodeAminoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TxDecodeAminoResponse>, 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 ServiceServer.