pub struct LedgerServiceClient<T> { /* private fields */ }Implementations§
Source§impl LedgerServiceClient<Channel>
impl LedgerServiceClient<Channel>
Source§impl<T> LedgerServiceClient<T>
impl<T> LedgerServiceClient<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, ) -> LedgerServiceClient<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 get_service_info(
&mut self,
request: impl IntoRequest<GetServiceInfoRequest>,
) -> Result<Response<GetServiceInfoResponse>, Status>
pub async fn get_service_info( &mut self, request: impl IntoRequest<GetServiceInfoRequest>, ) -> Result<Response<GetServiceInfoResponse>, Status>
Query the service for general information about its current state.
pub async fn get_object( &mut self, request: impl IntoRequest<GetObjectRequest>, ) -> Result<Response<GetObjectResponse>, Status>
pub async fn batch_get_objects( &mut self, request: impl IntoRequest<BatchGetObjectsRequest>, ) -> Result<Response<BatchGetObjectsResponse>, Status>
Sourcepub async fn list_object_versions(
&mut self,
request: impl IntoRequest<ListObjectVersionsRequest>,
) -> Result<Response<Streaming<ListObjectVersionsResponse>>, Status>
pub async fn list_object_versions( &mut self, request: impl IntoRequest<ListObjectVersionsRequest>, ) -> Result<Response<Streaming<ListObjectVersionsResponse>>, Status>
List one object’s history: its live versions and the versions at which it was deleted or wrapped, in ascending or descending version order, one per response frame, paged by cursor.
Servers that prune history, such as fullnodes, list the versions they
retain; see ListObjectVersionsRequest.
pub async fn get_transaction( &mut self, request: impl IntoRequest<GetTransactionRequest>, ) -> Result<Response<GetTransactionResponse>, Status>
pub async fn batch_get_transactions( &mut self, request: impl IntoRequest<BatchGetTransactionsRequest>, ) -> Result<Response<BatchGetTransactionsResponse>, Status>
pub async fn get_checkpoint( &mut self, request: impl IntoRequest<GetCheckpointRequest>, ) -> Result<Response<GetCheckpointResponse>, Status>
pub async fn get_epoch( &mut self, request: impl IntoRequest<GetEpochRequest>, ) -> Result<Response<GetEpochResponse>, Status>
Sourcepub async fn get_protocol_config(
&mut self,
request: impl IntoRequest<GetProtocolConfigRequest>,
) -> Result<Response<GetProtocolConfigResponse>, Status>
pub async fn get_protocol_config( &mut self, request: impl IntoRequest<GetProtocolConfigRequest>, ) -> Result<Response<GetProtocolConfigResponse>, Status>
Get the protocol config of a protocol version.
With version unset, it returns the config of the current protocol
version: on fullnodes, the version of their live system state; on kv-rpc,
the version in force at the highest checkpoint it has indexed. A
version above the current one fails with NOT_FOUND. kv-rpc also
answers NOT_FOUND for a version the chain skipped: a protocol upgrade
can advance the version by more than one, and a skipped version has no
config. Fullnodes compute configs from their own binary and serve every
version up to the current one.
A server not set up to serve this method fails with UNIMPLEMENTED and
reason NOT_SERVED_HERE.
Sourcepub async fn list_checkpoints(
&mut self,
request: impl IntoRequest<ListCheckpointsRequest>,
) -> Result<Response<Streaming<ListCheckpointsResponse>>, Status>
pub async fn list_checkpoints( &mut self, request: impl IntoRequest<ListCheckpointsRequest>, ) -> Result<Response<Streaming<ListCheckpointsResponse>>, Status>
List checkpoints matching the provided filters.
Checkpoints are returned in ascending or descending checkpoint sequence number order according to the query options ordering. A checkpoint matches if any transaction it contains satisfies the filter.
Sourcepub async fn list_transactions(
&mut self,
request: impl IntoRequest<ListTransactionsRequest>,
) -> Result<Response<Streaming<ListTransactionsResponse>>, Status>
pub async fn list_transactions( &mut self, request: impl IntoRequest<ListTransactionsRequest>, ) -> Result<Response<Streaming<ListTransactionsResponse>>, Status>
List transactions matching the provided filters.
Transactions are returned in ascending or descending transaction sequence order according to the query options ordering.
Sourcepub async fn list_events(
&mut self,
request: impl IntoRequest<ListEventsRequest>,
) -> Result<Response<Streaming<ListEventsResponse>>, Status>
pub async fn list_events( &mut self, request: impl IntoRequest<ListEventsRequest>, ) -> Result<Response<Streaming<ListEventsResponse>>, Status>
List events matching the provided filters.
Events are returned in ascending or descending packed event sequence order according to the query options ordering.
Trait Implementations§
Source§impl<T: Clone> Clone for LedgerServiceClient<T>
impl<T: Clone> Clone for LedgerServiceClient<T>
Auto Trait Implementations§
impl<T> !Freeze for LedgerServiceClient<T>
impl<T> RefUnwindSafe for LedgerServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for LedgerServiceClient<T>where
T: Send,
impl<T> Sync for LedgerServiceClient<T>where
T: Sync,
impl<T> Unpin for LedgerServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for LedgerServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LedgerServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for 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> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
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>,
Layered].§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.