Trait Query

Source
pub trait Query:
    Send
    + Sync
    + 'static {
    // Required methods
    fn connection<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryConnectionRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn connections<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryConnectionsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn client_connections<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryClientConnectionsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientConnectionsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn connection_client_state<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryConnectionClientStateRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionClientStateResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn connection_consensus_state<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryConnectionConsensusStateRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionConsensusStateResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn connection_params<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryConnectionParamsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionParamsResponse>, 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 connection<'life0, 'async_trait>( &'life0 self, request: Request<QueryConnectionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Connection queries an IBC connection end.

Source

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

Connections queries all the IBC connections of a chain.

Source

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

ClientConnections queries the connection paths associated with a client state.

Source

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

ConnectionClientState queries the client state associated with the connection.

Source

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

ConnectionConsensusState queries the consensus state associated with the connection.

Source

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

ConnectionParams queries all parameters of the ibc connection submodule.

Implementors§