pub struct AbciApplicationClient<T> { /* private fields */ }Implementations§
Source§impl AbciApplicationClient<Channel>
impl AbciApplicationClient<Channel>
Source§impl<T> AbciApplicationClient<T>
impl<T> AbciApplicationClient<T>
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> AbciApplicationClient<InterceptedService<T, F>>
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 echo(
&mut self,
request: impl IntoRequest<RequestEcho>,
) -> Result<Response<ResponseEcho>, Status>
pub async fn echo( &mut self, request: impl IntoRequest<RequestEcho>, ) -> Result<Response<ResponseEcho>, Status>
Echo a string to test an abci client/server implementation
pub async fn flush( &mut self, request: impl IntoRequest<RequestFlush>, ) -> Result<Response<ResponseFlush>, Status>
pub async fn info( &mut self, request: impl IntoRequest<RequestInfo>, ) -> Result<Response<ResponseInfo>, Status>
pub async fn check_tx( &mut self, request: impl IntoRequest<RequestCheckTx>, ) -> Result<Response<ResponseCheckTx>, Status>
pub async fn query( &mut self, request: impl IntoRequest<RequestQuery>, ) -> Result<Response<ResponseQuery>, Status>
pub async fn init_chain( &mut self, request: impl IntoRequest<RequestInitChain>, ) -> Result<Response<ResponseInitChain>, Status>
pub async fn list_snapshots( &mut self, request: impl IntoRequest<RequestListSnapshots>, ) -> Result<Response<ResponseListSnapshots>, Status>
pub async fn offer_snapshot( &mut self, request: impl IntoRequest<RequestOfferSnapshot>, ) -> Result<Response<ResponseOfferSnapshot>, Status>
pub async fn load_snapshot_chunk( &mut self, request: impl IntoRequest<RequestLoadSnapshotChunk>, ) -> Result<Response<ResponseLoadSnapshotChunk>, Status>
pub async fn apply_snapshot_chunk( &mut self, request: impl IntoRequest<RequestApplySnapshotChunk>, ) -> Result<Response<ResponseApplySnapshotChunk>, Status>
pub async fn prepare_proposal( &mut self, request: impl IntoRequest<RequestPrepareProposal>, ) -> Result<Response<ResponsePrepareProposal>, Status>
pub async fn process_proposal( &mut self, request: impl IntoRequest<RequestProcessProposal>, ) -> Result<Response<ResponseProcessProposal>, Status>
pub async fn extend_vote( &mut self, request: impl IntoRequest<RequestExtendVote>, ) -> Result<Response<ResponseExtendVote>, Status>
pub async fn verify_vote_extension( &mut self, request: impl IntoRequest<RequestVerifyVoteExtension>, ) -> Result<Response<ResponseVerifyVoteExtension>, Status>
pub async fn finalize_block( &mut self, request: impl IntoRequest<RequestFinalizeBlock>, ) -> Result<Response<ResponseFinalizeBlock>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for AbciApplicationClient<T>
impl<T: Clone> Clone for AbciApplicationClient<T>
Source§fn clone(&self) -> AbciApplicationClient<T>
fn clone(&self) -> AbciApplicationClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for AbciApplicationClient<T>
impl<T> RefUnwindSafe for AbciApplicationClient<T>where
T: RefUnwindSafe,
impl<T> Send for AbciApplicationClient<T>where
T: Send,
impl<T> Sync for AbciApplicationClient<T>where
T: Sync,
impl<T> Unpin for AbciApplicationClient<T>where
T: Unpin,
impl<T> UnwindSafe for AbciApplicationClient<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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].