Struct ibc_proto::ibc::applications::fee::v1::query_client::QueryClient
source · pub struct QueryClient<T> { /* private fields */ }
Expand description
Query defines the ICS29 gRPC 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 async fn incentivized_packets(
&mut self,
request: impl IntoRequest<QueryIncentivizedPacketsRequest>
) -> Result<Response<QueryIncentivizedPacketsResponse>, Status>
pub async fn incentivized_packets(
&mut self,
request: impl IntoRequest<QueryIncentivizedPacketsRequest>
) -> Result<Response<QueryIncentivizedPacketsResponse>, Status>
IncentivizedPackets returns all incentivized packets and their associated fees
sourcepub async fn incentivized_packet(
&mut self,
request: impl IntoRequest<QueryIncentivizedPacketRequest>
) -> Result<Response<QueryIncentivizedPacketResponse>, Status>
pub async fn incentivized_packet(
&mut self,
request: impl IntoRequest<QueryIncentivizedPacketRequest>
) -> Result<Response<QueryIncentivizedPacketResponse>, Status>
IncentivizedPacket returns all packet fees for a packet given its identifier
sourcepub async fn incentivized_packets_for_channel(
&mut self,
request: impl IntoRequest<QueryIncentivizedPacketsForChannelRequest>
) -> Result<Response<QueryIncentivizedPacketsForChannelResponse>, Status>
pub async fn incentivized_packets_for_channel(
&mut self,
request: impl IntoRequest<QueryIncentivizedPacketsForChannelRequest>
) -> Result<Response<QueryIncentivizedPacketsForChannelResponse>, Status>
Gets all incentivized packets for a specific channel
sourcepub async fn total_recv_fees(
&mut self,
request: impl IntoRequest<QueryTotalRecvFeesRequest>
) -> Result<Response<QueryTotalRecvFeesResponse>, Status>
pub async fn total_recv_fees(
&mut self,
request: impl IntoRequest<QueryTotalRecvFeesRequest>
) -> Result<Response<QueryTotalRecvFeesResponse>, Status>
TotalRecvFees returns the total receive fees for a packet given its identifier
sourcepub async fn total_ack_fees(
&mut self,
request: impl IntoRequest<QueryTotalAckFeesRequest>
) -> Result<Response<QueryTotalAckFeesResponse>, Status>
pub async fn total_ack_fees(
&mut self,
request: impl IntoRequest<QueryTotalAckFeesRequest>
) -> Result<Response<QueryTotalAckFeesResponse>, Status>
TotalAckFees returns the total acknowledgement fees for a packet given its identifier
sourcepub async fn total_timeout_fees(
&mut self,
request: impl IntoRequest<QueryTotalTimeoutFeesRequest>
) -> Result<Response<QueryTotalTimeoutFeesResponse>, Status>
pub async fn total_timeout_fees(
&mut self,
request: impl IntoRequest<QueryTotalTimeoutFeesRequest>
) -> Result<Response<QueryTotalTimeoutFeesResponse>, Status>
TotalTimeoutFees returns the total timeout fees for a packet given its identifier
sourcepub async fn payee(
&mut self,
request: impl IntoRequest<QueryPayeeRequest>
) -> Result<Response<QueryPayeeResponse>, Status>
pub async fn payee(
&mut self,
request: impl IntoRequest<QueryPayeeRequest>
) -> Result<Response<QueryPayeeResponse>, Status>
Payee returns the registered payee address for a specific channel given the relayer address
sourcepub async fn counterparty_payee(
&mut self,
request: impl IntoRequest<QueryCounterpartyPayeeRequest>
) -> Result<Response<QueryCounterpartyPayeeResponse>, Status>
pub async fn counterparty_payee(
&mut self,
request: impl IntoRequest<QueryCounterpartyPayeeRequest>
) -> Result<Response<QueryCounterpartyPayeeResponse>, Status>
CounterpartyPayee returns the registered counterparty payee for forward relaying
sourcepub async fn fee_enabled_channels(
&mut self,
request: impl IntoRequest<QueryFeeEnabledChannelsRequest>
) -> Result<Response<QueryFeeEnabledChannelsResponse>, Status>
pub async fn fee_enabled_channels(
&mut self,
request: impl IntoRequest<QueryFeeEnabledChannelsRequest>
) -> Result<Response<QueryFeeEnabledChannelsResponse>, Status>
FeeEnabledChannels returns a list of all fee enabled channels
sourcepub async fn fee_enabled_channel(
&mut self,
request: impl IntoRequest<QueryFeeEnabledChannelRequest>
) -> Result<Response<QueryFeeEnabledChannelResponse>, Status>
pub async fn fee_enabled_channel(
&mut self,
request: impl IntoRequest<QueryFeeEnabledChannelRequest>
) -> Result<Response<QueryFeeEnabledChannelResponse>, Status>
FeeEnabledChannel returns true if the provided port and channel identifiers belong to a fee enabled channel
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> 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>
T
in a tonic::Request