pub trait CanQueryPacketCommitments<Counterparty>: HasIbcChainTypes<Counterparty> + HasErrorType {
// Required method
fn query_packet_commitments(
&self,
channel_id: &Self::ChannelId,
port_id: &Self::PortId,
) -> impl Future<Output = Result<(Vec<Self::Sequence>, Self::Height), Self::Error>> + Send;
}
Required Methods§
Sourcefn query_packet_commitments(
&self,
channel_id: &Self::ChannelId,
port_id: &Self::PortId,
) -> impl Future<Output = Result<(Vec<Self::Sequence>, Self::Height), Self::Error>> + Send
fn query_packet_commitments( &self, channel_id: &Self::ChannelId, port_id: &Self::PortId, ) -> impl Future<Output = Result<(Vec<Self::Sequence>, Self::Height), Self::Error>> + Send
Query the sequences of the packets that the chain has committed to be sent to the counterparty chain, of which the full packet relaying is not yet completed. Once the chain receives the ack from the counterparty chain, a given sequence should be removed from the packet commitment list.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.