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§
source§impl QueryClient<Channel>
impl QueryClient<Channel>
source§impl<T> QueryClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> QueryClient<T>where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>( inner: T, interceptor: F ) -> QueryClient<InterceptedService<T, F>>where F: Interceptor, T::ResponseBody: Default, T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>, <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub 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.
sourcepub 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.
sourcepub 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)
sourcepub 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.
Since: cosmos-sdk 0.43
Returns the account with authority to conduct upgrades
Since: cosmos-sdk 0.46
Trait Implementations§
source§impl<T: Clone> Clone for QueryClient<T>
impl<T: Clone> Clone for QueryClient<T>
source§fn clone(&self) -> QueryClient<T>
fn clone(&self) -> QueryClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto 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§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request