pub struct XrpLedgerApiServiceClient<T> { /* private fields */ }Expand description
These methods are binary only methods for retrieving arbitrary ledger state via gRPC. These methods are used by clio, but can also be used by any client that wants to extract ledger state in an efficient manner. They do not directly mimic the JSON equivalent methods.
Implementations§
Source§impl XrpLedgerApiServiceClient<Channel>
impl XrpLedgerApiServiceClient<Channel>
Source§impl<T> XrpLedgerApiServiceClient<T>
impl<T> XrpLedgerApiServiceClient<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, ) -> XrpLedgerApiServiceClient<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_ledger(
&mut self,
request: impl IntoRequest<GetLedgerRequest>,
) -> Result<Response<GetLedgerResponse>, Status>
pub async fn get_ledger( &mut self, request: impl IntoRequest<GetLedgerRequest>, ) -> Result<Response<GetLedgerResponse>, Status>
Get a specific ledger, optionally including transactions and any modified, added or deleted ledger objects
Sourcepub async fn get_ledger_entry(
&mut self,
request: impl IntoRequest<GetLedgerEntryRequest>,
) -> Result<Response<GetLedgerEntryResponse>, Status>
pub async fn get_ledger_entry( &mut self, request: impl IntoRequest<GetLedgerEntryRequest>, ) -> Result<Response<GetLedgerEntryResponse>, Status>
Get a specific ledger object from a specific ledger
Sourcepub async fn get_ledger_data(
&mut self,
request: impl IntoRequest<GetLedgerDataRequest>,
) -> Result<Response<GetLedgerDataResponse>, Status>
pub async fn get_ledger_data( &mut self, request: impl IntoRequest<GetLedgerDataRequest>, ) -> Result<Response<GetLedgerDataResponse>, Status>
Iterate through all ledger objects in a specific ledger
Sourcepub async fn get_ledger_diff(
&mut self,
request: impl IntoRequest<GetLedgerDiffRequest>,
) -> Result<Response<GetLedgerDiffResponse>, Status>
pub async fn get_ledger_diff( &mut self, request: impl IntoRequest<GetLedgerDiffRequest>, ) -> Result<Response<GetLedgerDiffResponse>, Status>
Get all ledger objects that are different between the two specified ledgers. Note, this method has no JSON equivalent.
Trait Implementations§
Source§impl<T: Clone> Clone for XrpLedgerApiServiceClient<T>
impl<T: Clone> Clone for XrpLedgerApiServiceClient<T>
Source§fn clone(&self) -> XrpLedgerApiServiceClient<T>
fn clone(&self) -> XrpLedgerApiServiceClient<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for XrpLedgerApiServiceClient<T>
impl<T> RefUnwindSafe for XrpLedgerApiServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for XrpLedgerApiServiceClient<T>where
T: Send,
impl<T> Sync for XrpLedgerApiServiceClient<T>where
T: Sync,
impl<T> Unpin for XrpLedgerApiServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for XrpLedgerApiServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for XrpLedgerApiServiceClient<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<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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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>
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].