Struct ibc_proto::cosmos::base::tendermint::v1beta1::service_client::ServiceClient [−][src]
pub struct ServiceClient<T> { /* fields omitted */ }
Expand description
Service defines the gRPC querier service for tendermint queries.
Implementations
impl<T> ServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ServiceClient<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
) -> ServiceClient<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 get_node_info(
&mut self,
request: impl IntoRequest<GetNodeInfoRequest>
) -> Result<Response<GetNodeInfoResponse>, Status>
pub async fn get_node_info(
&mut self,
request: impl IntoRequest<GetNodeInfoRequest>
) -> Result<Response<GetNodeInfoResponse>, Status>
GetNodeInfo queries the current node info.
pub async fn get_syncing(
&mut self,
request: impl IntoRequest<GetSyncingRequest>
) -> Result<Response<GetSyncingResponse>, Status>
pub async fn get_syncing(
&mut self,
request: impl IntoRequest<GetSyncingRequest>
) -> Result<Response<GetSyncingResponse>, Status>
GetSyncing queries node syncing.
pub async fn get_latest_block(
&mut self,
request: impl IntoRequest<GetLatestBlockRequest>
) -> Result<Response<GetLatestBlockResponse>, Status>
pub async fn get_latest_block(
&mut self,
request: impl IntoRequest<GetLatestBlockRequest>
) -> Result<Response<GetLatestBlockResponse>, Status>
GetLatestBlock returns the latest block.
pub async fn get_block_by_height(
&mut self,
request: impl IntoRequest<GetBlockByHeightRequest>
) -> Result<Response<GetBlockByHeightResponse>, Status>
pub async fn get_block_by_height(
&mut self,
request: impl IntoRequest<GetBlockByHeightRequest>
) -> Result<Response<GetBlockByHeightResponse>, Status>
GetBlockByHeight queries block for given height.
pub async fn get_latest_validator_set(
&mut self,
request: impl IntoRequest<GetLatestValidatorSetRequest>
) -> Result<Response<GetLatestValidatorSetResponse>, Status>
pub async fn get_latest_validator_set(
&mut self,
request: impl IntoRequest<GetLatestValidatorSetRequest>
) -> Result<Response<GetLatestValidatorSetResponse>, Status>
GetLatestValidatorSet queries latest validator-set.
pub async fn get_validator_set_by_height(
&mut self,
request: impl IntoRequest<GetValidatorSetByHeightRequest>
) -> Result<Response<GetValidatorSetByHeightResponse>, Status>
pub async fn get_validator_set_by_height(
&mut self,
request: impl IntoRequest<GetValidatorSetByHeightRequest>
) -> Result<Response<GetValidatorSetByHeightResponse>, Status>
GetValidatorSetByHeight queries validator-set at a given height.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for ServiceClient<T> where
T: Send,
impl<T> Sync for ServiceClient<T> where
T: Sync,
impl<T> Unpin for ServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for ServiceClient<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