Struct ibc_proto::cosmos::upgrade::v1beta1::query_client::QueryClient
source · [−]pub struct QueryClient<T> { /* private fields */ }
Expand description
Query defines the gRPC upgrade querier service.
Implementations
impl<T> QueryClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> QueryClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> QueryClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn current_plan(
&mut self,
request: impl IntoRequest<QueryCurrentPlanRequest>
) -> Result<Response<QueryCurrentPlanResponse>, Status>
pub async fn current_plan(
&mut self,
request: impl IntoRequest<QueryCurrentPlanRequest>
) -> Result<Response<QueryCurrentPlanResponse>, Status>
CurrentPlan queries the current upgrade plan.
pub async fn applied_plan(
&mut self,
request: impl IntoRequest<QueryAppliedPlanRequest>
) -> Result<Response<QueryAppliedPlanResponse>, Status>
pub async fn applied_plan(
&mut self,
request: impl IntoRequest<QueryAppliedPlanRequest>
) -> Result<Response<QueryAppliedPlanResponse>, Status>
AppliedPlan queries a previously applied upgrade plan by its name.
pub async fn upgraded_consensus_state(
&mut self,
request: impl IntoRequest<QueryUpgradedConsensusStateRequest>
) -> Result<Response<QueryUpgradedConsensusStateResponse>, Status>
pub async fn upgraded_consensus_state(
&mut self,
request: impl IntoRequest<QueryUpgradedConsensusStateRequest>
) -> Result<Response<QueryUpgradedConsensusStateResponse>, Status>
UpgradedConsensusState queries the consensus state that will serve as a trusted kernel for the next version of this chain. It will only be stored at the last height of this chain. UpgradedConsensusState RPC not supported with legacy querier This rpc is deprecated now that IBC has its own replacement (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
pub async fn module_versions(
&mut self,
request: impl IntoRequest<QueryModuleVersionsRequest>
) -> Result<Response<QueryModuleVersionsResponse>, Status>
pub async fn module_versions(
&mut self,
request: impl IntoRequest<QueryModuleVersionsRequest>
) -> Result<Response<QueryModuleVersionsResponse>, Status>
ModuleVersions queries the list of module versions from state.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for QueryClient<T> where
T: RefUnwindSafe,
impl<T> Send for QueryClient<T> where
T: Send,
impl<T> Sync for QueryClient<T> where
T: Sync,
impl<T> Unpin for QueryClient<T> where
T: Unpin,
impl<T> UnwindSafe for QueryClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more