pub struct HttpRPCClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for HttpRPCClient
impl Clone for HttpRPCClient
Source§fn clone(&self) -> HttpRPCClient
fn clone(&self) -> HttpRPCClient
Returns a copy 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 moreSource§impl Debug for HttpRPCClient
impl Debug for HttpRPCClient
Source§impl RPCClient for HttpRPCClient
impl RPCClient for HttpRPCClient
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_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: 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_protocol_components_paginated<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProtocolComponentsRequestBody,
chunk_size: 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_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: usize, concurrency: usize, ) -> Pin<Box<dyn Future<Output = Result<ProtocolStateRequestResponse, RPCError>> + Send + '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: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResponseToken>, RPCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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§
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