pub struct ClientQueryService<I, U>where
    I: QueryContext + Send + Sync + 'static,
    U: UpgradeValidationContext + Send + Sync + 'static,
    UpgradedClientStateRef<U>: Into<Any>,
    UpgradedConsensusStateRef<U>: Into<Any>,{ /* private fields */ }Expand description
Generics I and U must be a type where writes from one thread are readable from another.
This means using Arc<Mutex<_>> or Arc<RwLock<_>> in most cases.
Implementations§
source§impl<I, U> ClientQueryService<I, U>where
    I: QueryContext + Send + Sync + 'static,
    U: UpgradeValidationContext + Send + Sync + 'static,
    UpgradedClientStateRef<U>: Into<Any>,
    UpgradedConsensusStateRef<U>: Into<Any>,
 
impl<I, U> ClientQueryService<I, U>where
    I: QueryContext + Send + Sync + 'static,
    U: UpgradeValidationContext + Send + Sync + 'static,
    UpgradedClientStateRef<U>: Into<Any>,
    UpgradedConsensusStateRef<U>: Into<Any>,
Trait Implementations§
source§impl<I, U> Query for ClientQueryService<I, U>where
    I: QueryContext + Send + Sync + 'static,
    U: UpgradeValidationContext + ProvableContext + Send + Sync + 'static,
    ConsensusStateRef<I>: Into<Any>,
    UpgradedConsensusStateRef<U>: Into<Any>,
 
impl<I, U> Query for ClientQueryService<I, U>where
    I: QueryContext + Send + Sync + 'static,
    U: UpgradeValidationContext + ProvableContext + Send + Sync + 'static,
    ConsensusStateRef<I>: Into<Any>,
    UpgradedConsensusStateRef<U>: Into<Any>,
source§fn client_state<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStateResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn client_state<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStateResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
ClientState queries an IBC light client.
source§fn client_states<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryClientStatesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatesResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn client_states<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryClientStatesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatesResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
ClientStates queries all the IBC light clients of a chain.
source§fn consensus_state<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn consensus_state<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
ConsensusState queries a consensus state associated with a client state at
a given height.
source§fn consensus_states<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryConsensusStatesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStatesResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn consensus_states<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryConsensusStatesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStatesResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
ConsensusStates queries all the consensus state associated with a given
client.
source§fn consensus_state_heights<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryConsensusStateHeightsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateHeightsResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn consensus_state_heights<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryConsensusStateHeightsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateHeightsResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
ConsensusStateHeights queries the height of every consensus states associated with a given client.
source§fn client_status<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryClientStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatusResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn client_status<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryClientStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatusResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Status queries the status of an IBC client.
source§fn client_params<'life0, 'async_trait>(
    &'life0 self,
    _request: Request<QueryClientParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientParamsResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn client_params<'life0, 'async_trait>(
    &'life0 self,
    _request: Request<QueryClientParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientParamsResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
ClientParams queries all parameters of the ibc client submodule.
source§fn upgraded_client_state<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryUpgradedClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedClientStateResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn upgraded_client_state<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryUpgradedClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedClientStateResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
UpgradedClientState queries an Upgraded IBC light client.
source§fn upgraded_consensus_state<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryUpgradedConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedConsensusStateResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn upgraded_consensus_state<'life0, 'async_trait>(
    &'life0 self,
    request: Request<QueryUpgradedConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedConsensusStateResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
UpgradedConsensusState queries an Upgraded IBC consensus state.
Auto Trait Implementations§
impl<I, U> Freeze for ClientQueryService<I, U>where
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ConsensusStateRef: Sized,
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ClientStateRef: Sized,
    I: Freeze,
    U: Freeze,
impl<I, U> RefUnwindSafe for ClientQueryService<I, U>where
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ConsensusStateRef: Sized,
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ClientStateRef: Sized,
    I: RefUnwindSafe,
    U: RefUnwindSafe,
impl<I, U> Send for ClientQueryService<I, U>where
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ConsensusStateRef: Sized,
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ClientStateRef: Sized,
impl<I, U> Sync for ClientQueryService<I, U>where
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ConsensusStateRef: Sized,
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ClientStateRef: Sized,
impl<I, U> Unpin for ClientQueryService<I, U>where
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ConsensusStateRef: Sized,
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ClientStateRef: Sized,
    I: Unpin,
    U: Unpin,
impl<I, U> UnwindSafe for ClientQueryService<I, U>where
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ConsensusStateRef: Sized,
    <<U as UpgradeValidationContext>::V as ClientValidationContext>::ClientStateRef: Sized,
    I: UnwindSafe,
    U: 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> 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> 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