Struct jsonrpsee_http_client::HttpClient [−][src]
pub struct HttpClient { /* fields omitted */ }
Expand description
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 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]
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]Perform a request towards the server.
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]
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]Send a notification request
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]
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]Send a batch request. Read more
Auto Trait Implementations
impl !RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl !UnwindSafe for HttpClient
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,