Struct cw_iper_test::ibc_applications::Ics20
source · pub struct Ics20;
Expand description
Ics20 Application
Implementations§
Trait Implementations§
source§impl IbcApplication for Ics20
impl IbcApplication for Ics20
source§fn packet_timeout(
&self,
api: &dyn Api,
block: &BlockInfo,
router: &RouterWrapper<'_>,
storage: Rc<RefCell<&mut dyn Storage>>,
msg: TimeoutPacket
) -> Result<AppResponse, Error>
fn packet_timeout( &self, api: &dyn Api, block: &BlockInfo, router: &RouterWrapper<'_>, storage: Rc<RefCell<&mut dyn Storage>>, msg: TimeoutPacket ) -> Result<AppResponse, Error>
Just raise Ack with mock acknowledgement
fn init(&self, api: &MockApiBech32, storage: &mut dyn Storage)
source§fn handle_outgoing_packet(
&self,
_api: &dyn Api,
_block: &BlockInfo,
sender: Addr,
router: &RouterWrapper<'_>,
storage: Rc<RefCell<&mut dyn Storage>>,
msg: IbcMsg,
channel: IbcChannelWrapper
) -> Result<AppResponse, Error>
fn handle_outgoing_packet( &self, _api: &dyn Api, _block: &BlockInfo, sender: Addr, router: &RouterWrapper<'_>, storage: Rc<RefCell<&mut dyn Storage>>, msg: IbcMsg, channel: IbcChannelWrapper ) -> Result<AppResponse, Error>
source§fn packet_receive(
&self,
api: &dyn Api,
_block: &BlockInfo,
router: &RouterWrapper<'_>,
storage: Rc<RefCell<&mut dyn Storage>>,
msg: IbcPacketReceiveMsg
) -> InfallibleResult<PacketReceiveOk, PacketReceiveFailing>
fn packet_receive( &self, api: &dyn Api, _block: &BlockInfo, router: &RouterWrapper<'_>, storage: Rc<RefCell<&mut dyn Storage>>, msg: IbcPacketReceiveMsg ) -> InfallibleResult<PacketReceiveOk, PacketReceiveFailing>
source§fn packet_ack(
&self,
_api: &dyn Api,
_block: &BlockInfo,
router: &RouterWrapper<'_>,
_storage: Rc<RefCell<&mut dyn Storage>>,
msg: AckPacket
) -> Result<AppResponse, Error>
fn packet_ack( &self, _api: &dyn Api, _block: &BlockInfo, router: &RouterWrapper<'_>, _storage: Rc<RefCell<&mut dyn Storage>>, msg: AckPacket ) -> Result<AppResponse, Error>
source§fn open_channel(
&self,
_api: &dyn Api,
_block: &BlockInfo,
_router: &RouterWrapper<'_>,
_storage: Rc<RefCell<&mut dyn Storage>>,
_msg: IbcChannelOpenMsg
) -> Result<AppResponse, Error>
fn open_channel( &self, _api: &dyn Api, _block: &BlockInfo, _router: &RouterWrapper<'_>, _storage: Rc<RefCell<&mut dyn Storage>>, _msg: IbcChannelOpenMsg ) -> Result<AppResponse, Error>
An
IBC channel
is being opened that carries this IbcApplication
.source§fn channel_connect(
&self,
_api: &dyn Api,
_block: &BlockInfo,
_router: &RouterWrapper<'_>,
_storage: Rc<RefCell<&mut dyn Storage>>,
_msg: IbcChannelConnectMsg
) -> Result<AppResponse, Error>
fn channel_connect( &self, _api: &dyn Api, _block: &BlockInfo, _router: &RouterWrapper<'_>, _storage: Rc<RefCell<&mut dyn Storage>>, _msg: IbcChannelConnectMsg ) -> Result<AppResponse, Error>
An
IBC channel
is being connected that carries this IbcApplication
.source§impl IbcPortInterface for Ics20
impl IbcPortInterface for Ics20
source§fn port_name(&self) -> String
fn port_name(&self) -> String
return the
port
name of an IbcApplication
source§impl StargateApplication for Ics20
impl StargateApplication for Ics20
source§impl StargateName for Ics20
impl StargateName for Ics20
source§fn stargate_name(&self) -> String
fn stargate_name(&self) -> String
Return the name the
StargateApplication
.source§impl StargateUrls for Ics20
impl StargateUrls for Ics20
source§fn is_query_type_url(&self, type_url: String) -> bool
fn is_query_type_url(&self, type_url: String) -> bool
Check if a type_url of a
GrpcQuery
is handled by the StargateApplication
.source§fn is_msg_type_url(&self, type_url: String) -> bool
fn is_msg_type_url(&self, type_url: String) -> bool
Check if a type_url of a
AnyMsg
is handled by the StargateApplication
.Auto Trait Implementations§
impl Freeze for Ics20
impl RefUnwindSafe for Ics20
impl Send for Ics20
impl Sync for Ics20
impl Unpin for Ics20
impl UnwindSafe for Ics20
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request