pub struct ConnectionQueryService<I>{ /* private fields */ }
Expand description
The generic I
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> ConnectionQueryService<I>
impl<I> ConnectionQueryService<I>
Trait Implementations§
Source§impl<I> Query for ConnectionQueryService<I>
impl<I> Query for ConnectionQueryService<I>
Source§fn connection<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConnectionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connection<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConnectionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connection queries an IBC connection end.
Source§fn connections<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConnectionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connections<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConnectionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connections queries all the IBC connections of a chain.
Source§fn client_connections<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientConnectionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientConnectionsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn client_connections<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientConnectionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientConnectionsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ClientConnections queries the connection paths associated with a client
state.
Source§fn connection_client_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConnectionClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionClientStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connection_client_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConnectionClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionClientStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ConnectionClientState queries the client state associated with the
connection.
Source§fn connection_consensus_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConnectionConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionConsensusStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connection_consensus_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConnectionConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionConsensusStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ConnectionConsensusState queries the consensus state associated with the
connection.
Source§fn connection_params<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConnectionParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionParamsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connection_params<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConnectionParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConnectionParamsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ConnectionParams queries all parameters of the ibc connection submodule.
Auto Trait Implementations§
impl<I> Freeze for ConnectionQueryService<I>where
<<I as ValidationContext>::V as ClientValidationContext>::ConsensusStateRef: Sized,
I: Freeze,
impl<I> RefUnwindSafe for ConnectionQueryService<I>where
<<I as ValidationContext>::V as ClientValidationContext>::ConsensusStateRef: Sized,
I: RefUnwindSafe,
impl<I> Send for ConnectionQueryService<I>
impl<I> Sync for ConnectionQueryService<I>
impl<I> Unpin for ConnectionQueryService<I>
impl<I> UnwindSafe for ConnectionQueryService<I>where
<<I as ValidationContext>::V as ClientValidationContext>::ConsensusStateRef: Sized,
I: 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