Struct cw_iper_test::Ecosystem
source · pub struct Ecosystem { /* private fields */ }
Expand description
This structure acts as a wrapper containing all IperApp
.
Its primary purpose is to relay IBC
packets
and to facilitate the creation of IBC
channels
among various IperApp
.
IperApp
s are stored as [IperAppRef
] traits instead of as IperApp
instances.
This approach is used to decouple them from the specific typing of the generic parameters
required by the IperApp
and App
classes.
Implementations§
source§impl Ecosystem
impl Ecosystem
sourcepub fn open_ibc_channel(
&self,
channel_1: IbcChannelCreator,
channel_2: IbcChannelCreator
) -> Result<(), Error>
pub fn open_ibc_channel( &self, channel_1: IbcChannelCreator, channel_2: IbcChannelCreator ) -> Result<(), Error>
Open a IbcChannel
bewteen two IperApp
sourcepub fn relay_all_packets(&self) -> Result<Vec<MayResponse>, Error>
pub fn relay_all_packets(&self) -> Result<Vec<MayResponse>, Error>
sourcepub fn relay_next_packet(
&self,
chain_id: impl Into<String> + Clone
) -> Result<MayResponse, Error>
pub fn relay_next_packet( &self, chain_id: impl Into<String> + Clone ) -> Result<MayResponse, Error>
Relay the next packet
of a specific IperApp
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ecosystem
impl !RefUnwindSafe for Ecosystem
impl !Send for Ecosystem
impl !Sync for Ecosystem
impl Unpin for Ecosystem
impl !UnwindSafe for Ecosystem
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