pub trait QueryService: Send + Sync + 'static {
    type CommunityPoolAssetBalancesStream: Stream<Item = Result<CommunityPoolAssetBalancesResponse, Status>> + Send + 'static;

    // Required method
    fn community_pool_asset_balances<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CommunityPoolAssetBalancesRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::CommunityPoolAssetBalancesStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature rpc only.
Expand description

Generated trait containing gRPC methods that should be implemented for use with QueryServiceServer.

Required Associated Types§

source

type CommunityPoolAssetBalancesStream: Stream<Item = Result<CommunityPoolAssetBalancesResponse, Status>> + Send + 'static

Server streaming response type for the CommunityPoolAssetBalances method.

Required Methods§

source

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

Implementors§