AbciApplication

Trait AbciApplication 

Source
pub trait AbciApplication:
    Send
    + Sync
    + 'static {
Show 15 methods // Provided methods fn echo<'life0, 'async_trait>( &'life0 self, request: Request<RequestEcho>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseEcho>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn flush<'life0, 'async_trait>( &'life0 self, request: Request<RequestFlush>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseFlush>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn info<'life0, 'async_trait>( &'life0 self, request: Request<RequestInfo>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseInfo>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn check_tx<'life0, 'async_trait>( &'life0 self, request: Request<RequestCheckTx>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseCheckTx>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn query<'life0, 'async_trait>( &'life0 self, request: Request<RequestQuery>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseQuery>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn init_chain<'life0, 'async_trait>( &'life0 self, request: Request<RequestInitChain>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseInitChain>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn list_snapshots<'life0, 'async_trait>( &'life0 self, request: Request<RequestListSnapshots>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseListSnapshots>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn offer_snapshot<'life0, 'async_trait>( &'life0 self, request: Request<RequestOfferSnapshot>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseOfferSnapshot>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn load_snapshot_chunk<'life0, 'async_trait>( &'life0 self, request: Request<RequestLoadSnapshotChunk>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseLoadSnapshotChunk>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn apply_snapshot_chunk<'life0, 'async_trait>( &'life0 self, request: Request<RequestApplySnapshotChunk>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseApplySnapshotChunk>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn prepare_proposal<'life0, 'async_trait>( &'life0 self, request: Request<RequestPrepareProposal>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponsePrepareProposal>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn process_proposal<'life0, 'async_trait>( &'life0 self, request: Request<RequestProcessProposal>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseProcessProposal>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn extend_vote<'life0, 'async_trait>( &'life0 self, request: Request<RequestExtendVote>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseExtendVote>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn verify_vote_extension<'life0, 'async_trait>( &'life0 self, request: Request<RequestVerifyVoteExtension>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseVerifyVoteExtension>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn finalize_block<'life0, 'async_trait>( &'life0 self, request: Request<RequestFinalizeBlock>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseFinalizeBlock>, 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 AbciApplicationServer.

Provided Methods§

Source

fn echo<'life0, 'async_trait>( &'life0 self, request: Request<RequestEcho>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseEcho>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Echo a string to test an abci client/server implementation

Source

fn flush<'life0, 'async_trait>( &'life0 self, request: Request<RequestFlush>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseFlush>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn info<'life0, 'async_trait>( &'life0 self, request: Request<RequestInfo>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseInfo>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn check_tx<'life0, 'async_trait>( &'life0 self, request: Request<RequestCheckTx>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseCheckTx>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn query<'life0, 'async_trait>( &'life0 self, request: Request<RequestQuery>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseQuery>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn init_chain<'life0, 'async_trait>( &'life0 self, request: Request<RequestInitChain>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseInitChain>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_snapshots<'life0, 'async_trait>( &'life0 self, request: Request<RequestListSnapshots>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseListSnapshots>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn offer_snapshot<'life0, 'async_trait>( &'life0 self, request: Request<RequestOfferSnapshot>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseOfferSnapshot>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn load_snapshot_chunk<'life0, 'async_trait>( &'life0 self, request: Request<RequestLoadSnapshotChunk>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseLoadSnapshotChunk>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn apply_snapshot_chunk<'life0, 'async_trait>( &'life0 self, request: Request<RequestApplySnapshotChunk>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseApplySnapshotChunk>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn prepare_proposal<'life0, 'async_trait>( &'life0 self, request: Request<RequestPrepareProposal>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponsePrepareProposal>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn process_proposal<'life0, 'async_trait>( &'life0 self, request: Request<RequestProcessProposal>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseProcessProposal>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn extend_vote<'life0, 'async_trait>( &'life0 self, request: Request<RequestExtendVote>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseExtendVote>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn verify_vote_extension<'life0, 'async_trait>( &'life0 self, request: Request<RequestVerifyVoteExtension>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseVerifyVoteExtension>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn finalize_block<'life0, 'async_trait>( &'life0 self, request: Request<RequestFinalizeBlock>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResponseFinalizeBlock>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§