[−][src]Struct async_json_rpc::clients::http::Client
A handle to a remote HTTP JSONRPC server.
Implementations
impl Client<HttpConnector>
[src]
pub fn new(url: String, user: Option<String>, password: Option<String>) -> Self
[src]
Creates a new client.
impl<C> Client<C>
[src]
pub fn next_nonce(&self) -> usize
[src]
impl Client<HttpsConnector<HttpConnector>>
[src]
pub fn new_tls(
url: String,
user: Option<String>,
password: Option<String>
) -> Self
[src]
url: String,
user: Option<String>,
password: Option<String>
) -> Self
Creates a new TLS client.
impl<C> Client<C> where
C: Connect + Clone + Send + Sync + 'static,
[src]
C: Connect + Clone + Send + Sync + 'static,
Trait Implementations
impl<C: Clone> Clone for Client<C>
[src]
impl<C: Debug> Debug for Client<C>
[src]
impl<C> RequestFactory for Client<C>
[src]
fn build_request(&self) -> RequestBuilder
[src]
impl<C> Service<Request> for Client<C> where
C: Connect + Clone + Send + Sync + 'static,
[src]
C: Connect + Clone + Send + Sync + 'static,
type Response = Response
Responses given by the service.
type Error = Error<HyperError>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Response, Self::Error>> + Send + 'static>>
The future response value.
fn poll_ready(&mut self, _: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, request: Request) -> Self::Future
[src]
Auto Trait Implementations
impl<C> !RefUnwindSafe for Client<C>
impl<C> Send for Client<C> where
C: Send,
C: Send,
impl<C> Sync for Client<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Client<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for Client<C>
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,