Trait Query

Source
pub trait Query:
    Send
    + Sync
    + 'static {
Show 17 methods // Required methods fn channel<'life0, 'async_trait>( &'life0 self, request: Request<QueryChannelRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryChannelResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn channels<'life0, 'async_trait>( &'life0 self, request: Request<QueryChannelsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryChannelsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn connection_channels<'life0, 'async_trait>( &'life0 self, request: Request<QueryConnectionChannelsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionChannelsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn channel_client_state<'life0, 'async_trait>( &'life0 self, request: Request<QueryChannelClientStateRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryChannelClientStateResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn channel_consensus_state<'life0, 'async_trait>( &'life0 self, request: Request<QueryChannelConsensusStateRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryChannelConsensusStateResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn packet_commitment<'life0, 'async_trait>( &'life0 self, request: Request<QueryPacketCommitmentRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryPacketCommitmentResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn packet_commitments<'life0, 'async_trait>( &'life0 self, request: Request<QueryPacketCommitmentsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryPacketCommitmentsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn packet_receipt<'life0, 'async_trait>( &'life0 self, request: Request<QueryPacketReceiptRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryPacketReceiptResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn packet_acknowledgement<'life0, 'async_trait>( &'life0 self, request: Request<QueryPacketAcknowledgementRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryPacketAcknowledgementResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn packet_acknowledgements<'life0, 'async_trait>( &'life0 self, request: Request<QueryPacketAcknowledgementsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryPacketAcknowledgementsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unreceived_packets<'life0, 'async_trait>( &'life0 self, request: Request<QueryUnreceivedPacketsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryUnreceivedPacketsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unreceived_acks<'life0, 'async_trait>( &'life0 self, request: Request<QueryUnreceivedAcksRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryUnreceivedAcksResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn next_sequence_receive<'life0, 'async_trait>( &'life0 self, request: Request<QueryNextSequenceReceiveRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryNextSequenceReceiveResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn next_sequence_send<'life0, 'async_trait>( &'life0 self, request: Request<QueryNextSequenceSendRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryNextSequenceSendResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn upgrade_error<'life0, 'async_trait>( &'life0 self, request: Request<QueryUpgradeErrorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradeErrorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn upgrade<'life0, 'async_trait>( &'life0 self, request: Request<QueryUpgradeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradeResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn channel_params<'life0, 'async_trait>( &'life0 self, request: Request<QueryChannelParamsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryChannelParamsResponse>, 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 channel<'life0, 'async_trait>( &'life0 self, request: Request<QueryChannelRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryChannelResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Channel queries an IBC Channel.

Source

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

Channels queries all the IBC channels of a chain.

Source

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

ConnectionChannels queries all the channels associated with a connection end.

Source

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

ChannelClientState queries for the client state for the channel associated with the provided channel identifiers.

Source

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

ChannelConsensusState queries for the consensus state for the channel associated with the provided channel identifiers.

Source

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

PacketCommitment queries a stored packet commitment hash.

Source

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

PacketCommitments returns all the packet commitments hashes associated with a channel.

Source

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

PacketReceipt queries if a given packet sequence has been received on the queried chain

Source

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

PacketAcknowledgement queries a stored packet acknowledgement hash.

Source

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

PacketAcknowledgements returns all the packet acknowledgements associated with a channel.

Source

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

UnreceivedPackets returns all the unreceived IBC packets associated with a channel and sequences.

Source

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

UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a channel and sequences.

Source

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

NextSequenceReceive returns the next receive sequence for a given channel.

Source

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

NextSequenceSend returns the next send sequence for a given channel.

Source

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

UpgradeError returns the error receipt if the upgrade handshake failed.

Source

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

Upgrade returns the upgrade for a given port and channel id.

Source

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

ChannelParams queries all parameters of the ibc channel submodule.

Implementors§