Struct jsonrpsee_http_client::HttpClient [−][src]
JSON-RPC HTTP Client that provides functionality to perform method calls and notifications.
Trait Implementations
impl Client for HttpClient
[src]
fn notification<'life0, 'async_trait, M, P>(
&'life0 self,
method: M,
params: P
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
M: Into<String> + Send,
P: Into<Params> + Send,
M: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
method: M,
params: P
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
M: Into<String> + Send,
P: Into<Params> + Send,
M: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn request<'life0, 'async_trait, T, M, P>(
&'life0 self,
method: M,
params: P
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>> where
T: DeserializeOwned,
M: Into<String> + Send,
P: Into<Params> + Send,
T: 'async_trait,
M: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
method: M,
params: P
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>> where
T: DeserializeOwned,
M: Into<String> + Send,
P: Into<Params> + Send,
T: 'async_trait,
M: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Perform a request towards the server.
fn batch_request<'life0, 'async_trait, T, M, P>(
&'life0 self,
batch: Vec<(M, P)>
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>> where
T: DeserializeOwned + Default + Clone,
M: Into<String> + Send,
P: Into<Params> + Send,
T: 'async_trait,
M: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
batch: Vec<(M, P)>
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>> where
T: DeserializeOwned + Default + Clone,
M: Into<String> + Send,
P: Into<Params> + Send,
T: 'async_trait,
M: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
impl Debug for HttpClient
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,