Struct jsonrpsee_http_client::HttpClient [−][src]
pub struct HttpClient { /* fields omitted */ }
JSON-RPC HTTP Client that provides functionality to perform method calls and notifications.
Trait Implementations
impl Client for HttpClient
[src]
impl Client for HttpClient
[src]fn notification<'a, 'life0, 'async_trait>(
&'life0 self,
method: &'a str,
params: JsonRpcParams<'a>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
method: &'a str,
params: JsonRpcParams<'a>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn request<'a, 'life0, 'async_trait, R>(
&'life0 self,
method: &'a str,
params: JsonRpcParams<'a>
) -> Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'async_trait>> where
R: DeserializeOwned,
'a: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
method: &'a str,
params: JsonRpcParams<'a>
) -> Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'async_trait>> where
R: DeserializeOwned,
'a: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Perform a request towards the server.
fn batch_request<'a, 'life0, 'async_trait, R>(
&'life0 self,
batch: Vec<(&'a str, JsonRpcParams<'a>)>
) -> Pin<Box<dyn Future<Output = Result<Vec<R>, Error>> + Send + 'async_trait>> where
R: DeserializeOwned + Default + Clone,
'a: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
batch: Vec<(&'a str, JsonRpcParams<'a>)>
) -> Pin<Box<dyn Future<Output = Result<Vec<R>, Error>> + Send + 'async_trait>> where
R: DeserializeOwned + Default + Clone,
'a: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for HttpClient
impl !RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl Unpin for HttpClient
impl !UnwindSafe for HttpClient
impl !UnwindSafe for HttpClient
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]