Struct async_jsonrpc_client::HttpClient [−][src]
HTTP JSON-RPC client
Implementations
impl HttpClient
[src]
pub fn new<U: Into<String>>(url: U) -> Result<Self, HttpClientError>
[src]
Creates a new HTTP JSON-RPC client with given url
.
pub fn builder() -> HttpClientBuilder
[src]
Creates a HttpClientBuilder
to configure a HttpClient
.
This is the same as HttpClientBuilder::new()
.
Trait Implementations
impl BatchTransport for HttpClient
[src]
fn request_batch<'life0, 'async_trait, I, M>(
&'life0 self,
batch: I
) -> Pin<Box<dyn Future<Output = Result<Vec<Output>, Self::Error>> + Send + 'async_trait>> where
I: IntoIterator<Item = (M, Option<Params>)> + Send,
I::IntoIter: Send,
M: Into<String>,
I: 'async_trait,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
batch: I
) -> Pin<Box<dyn Future<Output = Result<Vec<Output>, Self::Error>> + Send + 'async_trait>> where
I: IntoIterator<Item = (M, Option<Params>)> + Send,
I::IntoIter: Send,
M: Into<String>,
I: 'async_trait,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
impl Clone for HttpClient
[src]
fn clone(&self) -> HttpClient
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Transport for HttpClient
[src]
type Error = HttpClientError
The transport error type.
fn request<'life0, 'async_trait, M>(
&'life0 self,
method: M,
params: Option<Params>
) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>> where
M: Into<String> + Send,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
method: M,
params: Option<Params>
) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>> where
M: Into<String> + Send,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
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> 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> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,