pub struct HttpRPCClient { /* private fields */ }Implementations§
Source§impl HttpRPCClient
impl HttpRPCClient
Trait Implementations§
Source§impl Clone for HttpRPCClient
impl Clone for HttpRPCClient
Source§fn clone(&self) -> HttpRPCClient
fn clone(&self) -> HttpRPCClient
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpRPCClient
impl Debug for HttpRPCClient
Source§impl RPCClient for HttpRPCClient
impl RPCClient for HttpRPCClient
Source§fn compression(&self) -> bool
fn compression(&self) -> bool
Returns whether compression is enabled for requests.
Source§fn get_contract_state<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 StateRequestBody,
) -> Pin<Box<dyn Future<Output = Result<StateRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_contract_state<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 StateRequestBody,
) -> Pin<Box<dyn Future<Output = Result<StateRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieves a snapshot of contract state.
fn get_protocol_components<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProtocolComponentsRequestBody,
) -> Pin<Box<dyn Future<Output = Result<ProtocolComponentRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_protocol_states<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProtocolStateRequestBody,
) -> Pin<Box<dyn Future<Output = Result<ProtocolStateRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_tokens<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 TokensRequestBody,
) -> Pin<Box<dyn Future<Output = Result<TokensRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_tokens<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 TokensRequestBody,
) -> Pin<Box<dyn Future<Output = Result<TokensRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
This function returns only one chunk of tokens. To get all tokens please call
get_all_tokens.
fn get_protocol_systems<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProtocolSystemsRequestBody,
) -> Pin<Box<dyn Future<Output = Result<ProtocolSystemsRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_component_tvl<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ComponentTvlRequestBody,
) -> Pin<Box<dyn Future<Output = Result<ComponentTvlRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_traced_entry_points<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 TracedEntryPointRequestBody,
) -> Pin<Box<dyn Future<Output = Result<TracedEntryPointRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_snapshots<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 SnapshotParameters<'a>,
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<Snapshot, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_contract_state_paginated<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
chain: Chain,
ids: &'life1 [Bytes],
protocol_system: &'life2 str,
version: &'life3 VersionParam,
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<StateRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_contract_state_paginated<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
chain: Chain,
ids: &'life1 [Bytes],
protocol_system: &'life2 str,
version: &'life3 VersionParam,
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<StateRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Retrieves a snapshot of contract state for a set of contract IDs.
If the
chunk_size is None, it defaults to the maximum page sizeSource§fn get_protocol_components_paginated<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProtocolComponentsRequestBody,
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<ProtocolComponentRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_protocol_components_paginated<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProtocolComponentsRequestBody,
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<ProtocolComponentRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieves protocol components.
If the
chunk_size is None, it defaults to the maximum page size.Source§fn get_protocol_states_paginated<'life0, 'life1, 'life2, 'life3, 'async_trait, T>(
&'life0 self,
chain: Chain,
ids: &'life1 [T],
protocol_system: &'life2 str,
include_balances: bool,
version: &'life3 VersionParam,
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<ProtocolStateRequestResponse, RPCError>> + Send + 'async_trait>>
fn get_protocol_states_paginated<'life0, 'life1, 'life2, 'life3, 'async_trait, T>( &'life0 self, chain: Chain, ids: &'life1 [T], protocol_system: &'life2 str, include_balances: bool, version: &'life3 VersionParam, chunk_size: Option<usize>, concurrency: usize, ) -> Pin<Box<dyn Future<Output = Result<ProtocolStateRequestResponse, RPCError>> + Send + 'async_trait>>
Retrieves protocol states for a set of protocol IDs.
If the
chunk_size is None, it defaults to the maximum page size.Source§fn get_all_tokens<'life0, 'async_trait>(
&'life0 self,
chain: Chain,
min_quality: Option<i32>,
traded_n_days_ago: Option<u64>,
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResponseToken>, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_tokens<'life0, 'async_trait>(
&'life0 self,
chain: Chain,
min_quality: Option<i32>,
traded_n_days_ago: Option<u64>,
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResponseToken>, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves all tokens matching the given criteria.
If the
chunk_size is None, it defaults to the maximum page size.Source§fn get_component_tvl_paginated<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ComponentTvlRequestBody,
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<ComponentTvlRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_component_tvl_paginated<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ComponentTvlRequestBody,
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<ComponentTvlRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieves component TVL for a set of component IDs.
If the
chunk_size is None, it defaults to the maximum page size.Source§fn get_traced_entry_points_paginated<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
chain: Chain,
protocol_system: &'life1 str,
component_ids: &'life2 [String],
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<TracedEntryPointRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_traced_entry_points_paginated<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
chain: Chain,
protocol_system: &'life1 str,
component_ids: &'life2 [String],
chunk_size: Option<usize>,
concurrency: usize,
) -> Pin<Box<dyn Future<Output = Result<TracedEntryPointRequestResponse, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Retrieves traced entry points for a set of component IDs.
If the
chunk_size is None, it defaults to the maximum page size.Auto Trait Implementations§
impl Freeze for HttpRPCClient
impl !RefUnwindSafe for HttpRPCClient
impl Send for HttpRPCClient
impl Sync for HttpRPCClient
impl Unpin for HttpRPCClient
impl !UnwindSafe for HttpRPCClient
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)