Enum cosmwasm_std::IbcQuery [−][src]
#[non_exhaustive] pub enum IbcQuery { PortId {}, ListChannels { port_id: Option<String>, }, Channel { channel_id: String, port_id: Option<String>, }, }
Expand description
These are queries to the various IBC modules to see the state of the contract’s IBC connection. These will return errors if the contract is not “ibc enabled”
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Gets the Port ID the current contract is bound to.
Returns a PortIdResponse
.
Fields of PortId
Lists all channels that are bound to a given port.
If port_id
is omitted, this list all channels bound to the contract’s port.
Returns a ListChannelsResponse
.
Lists all information for a (portID, channelID) pair. If port_id is omitted, it will default to the contract’s own channel. (To save a PortId{} call)
Returns a ChannelResponse
.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for IbcQuery
impl UnwindSafe for IbcQuery
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self