pub struct ClientQuerier<'a, Q: CustomQuery> { /* private fields */ }Implementations§
Source§impl<'a, Q: CustomQuery> ClientQuerier<'a, Q>
impl<'a, Q: CustomQuery> ClientQuerier<'a, Q>
pub fn new(querier: &'a QuerierWrapper<'a, Q>) -> Self
pub fn client_state( &self, client_id: String, ) -> Result<QueryClientStateResponse, StdError>
pub fn client_states( &self, pagination: Option<PageRequest>, ) -> Result<QueryClientStatesResponse, StdError>
pub fn consensus_state( &self, client_id: String, revision_number: u64, revision_height: u64, latest_height: bool, ) -> Result<QueryConsensusStateResponse, StdError>
pub fn consensus_states( &self, client_id: String, pagination: Option<PageRequest>, ) -> Result<QueryConsensusStatesResponse, StdError>
pub fn consensus_state_heights( &self, client_id: String, pagination: Option<PageRequest>, ) -> Result<QueryConsensusStateHeightsResponse, StdError>
pub fn client_status( &self, client_id: String, ) -> Result<QueryClientStatusResponse, StdError>
pub fn client_params(&self) -> Result<QueryClientParamsResponse, StdError>
pub fn upgraded_client_state( &self, ) -> Result<QueryUpgradedClientStateResponse, StdError>
pub fn upgraded_consensus_state( &self, ) -> Result<QueryUpgradedConsensusStateResponse, StdError>
pub fn verify_membership( &self, client_id: String, proof: Vec<u8>, proof_height: Option<Height>, merkle_path: Option<MerklePath>, value: Vec<u8>, time_delay: u64, block_delay: u64, ) -> Result<QueryVerifyMembershipResponse, StdError>
Auto Trait Implementations§
impl<'a, Q> Freeze for ClientQuerier<'a, Q>
impl<'a, Q> !RefUnwindSafe for ClientQuerier<'a, Q>
impl<'a, Q> !Send for ClientQuerier<'a, Q>
impl<'a, Q> !Sync for ClientQuerier<'a, Q>
impl<'a, Q> Unpin for ClientQuerier<'a, Q>
impl<'a, Q> !UnwindSafe for ClientQuerier<'a, Q>
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