pub trait IbcCallbackEndpoint: Handler {
// Required method
fn ibc_client_addr(&self, deps: Deps<'_>) -> Result<Addr, Self::Error>;
// Provided method
fn ibc_callback(
self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: IbcResponseMsg,
) -> Result<Response, Self::Error> { ... }
}
Expand description
Trait for a contract’s IBC callback ExecuteMsg variant.
Required Methods§
Provided Methods§
Sourcefn ibc_callback(
self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: IbcResponseMsg,
) -> Result<Response, Self::Error>
fn ibc_callback( self, deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: IbcResponseMsg, ) -> Result<Response, Self::Error>
Handler for the ExecuteMsg::IbcCallback()
variant.
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.