pub struct CwIcaControllerContractQuerier<'a> { /* private fields */ }Expand description
CwIcaControllerContractQuerier is a wrapper around QuerierWrapper that provides
helpers for querying this contract.
This can be constructed by CwIcaControllerContract::query or Self::new.
Implementations§
Source§impl<'a> CwIcaControllerContractQuerier<'a>
impl<'a> CwIcaControllerContractQuerier<'a>
Sourcepub const fn new(querier: &'a QuerierWrapper<'a>, addr: String) -> Self
pub const fn new(querier: &'a QuerierWrapper<'a>, addr: String) -> Self
Creates a new [LightClientContractQuerier]
Sourcepub fn get_channel(&self) -> StdResult<ChannelState>
pub fn get_channel(&self) -> StdResult<ChannelState>
get_channel sends a msg::QueryMsg::GetChannel query to this contract.
§Errors
This function returns an error if the query fails
Sourcepub fn get_contract_state(&self) -> StdResult<ContractState>
pub fn get_contract_state(&self) -> StdResult<ContractState>
get_contract_state sends a msg::QueryMsg::GetContractState query to this contract.
§Errors
This function returns an error if the query fails
Auto Trait Implementations§
impl<'a> Freeze for CwIcaControllerContractQuerier<'a>
impl<'a> !RefUnwindSafe for CwIcaControllerContractQuerier<'a>
impl<'a> !Send for CwIcaControllerContractQuerier<'a>
impl<'a> !Sync for CwIcaControllerContractQuerier<'a>
impl<'a> Unpin for CwIcaControllerContractQuerier<'a>
impl<'a> !UnwindSafe for CwIcaControllerContractQuerier<'a>
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> 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