Trait Query

Source
pub trait Query:
    Send
    + Sync
    + 'static {
    // Required methods
    fn checksums<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryChecksumsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryChecksumsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn code<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryCodeRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryCodeResponse>, 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 QueryServer.

Required Methods§

Source

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

Get all Wasm checksums

Source

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

Get Wasm code for given checksum

Implementors§