pub struct AbstractIbc<Chain: CwEnv> {
pub client: IbcClient<Chain>,
pub host: IbcHost<Chain>,
}
Fields§
§client: IbcClient<Chain>
§host: IbcHost<Chain>
Implementations§
Source§impl<Chain: CwEnv> AbstractIbc<Chain>
impl<Chain: CwEnv> AbstractIbc<Chain>
pub fn new(chain: &Chain) -> Self
pub fn upload(&self) -> Result<(), AbstractInterfaceError>
pub fn instantiate(&self, admin: &Addr) -> Result<(), CwOrchError>
pub fn register( &self, registry: &Registry<Chain>, ) -> Result<(), AbstractInterfaceError>
pub fn call_as(&self, sender: &<Chain as TxHandler>::Sender) -> Self
Trait Implementations§
Source§impl<Chain: Clone + CwEnv> Clone for AbstractIbc<Chain>
impl<Chain: Clone + CwEnv> Clone for AbstractIbc<Chain>
Source§fn clone(&self) -> AbstractIbc<Chain>
fn clone(&self) -> AbstractIbc<Chain>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<Chain> Freeze for AbstractIbc<Chain>where
Chain: Freeze,
impl<Chain> RefUnwindSafe for AbstractIbc<Chain>where
Chain: RefUnwindSafe,
impl<Chain> Send for AbstractIbc<Chain>where
Chain: Send,
impl<Chain> Sync for AbstractIbc<Chain>where
Chain: Sync,
impl<Chain> Unpin for AbstractIbc<Chain>where
Chain: Unpin,
impl<Chain> UnwindSafe for AbstractIbc<Chain>where
Chain: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more