pub struct Client<S> { /* private fields */ }
Expand description
A handle to a remote HTTP JSON-RPC server.
Implementations§
Source§impl Client<Client<HttpConnector>>
impl Client<Client<HttpConnector>>
Trait Implementations§
Source§impl<C> RequestFactory for Client<C>
impl<C> RequestFactory for Client<C>
Source§fn build_request(&self) -> RequestBuilder
fn build_request(&self) -> RequestBuilder
Build the request.
Source§impl<S> Service<Request> for Client<S>
impl<S> Service<Request> for Client<S>
Source§type Error = Error<ConnectionError<<S as Service<Request<Body>>>::Error>>
type Error = Error<ConnectionError<<S as Service<Request<Body>>>::Error>>
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<Client<S> as Service<Request>>::Response, <Client<S> as Service<Request>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Client<S> as Service<Request>>::Response, <Client<S> as Service<Request>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<S> Freeze for Client<S>where
S: Freeze,
impl<S> RefUnwindSafe for Client<S>where
S: RefUnwindSafe,
impl<S> Send for Client<S>where
S: Send,
impl<S> Sync for Client<S>where
S: Sync,
impl<S> Unpin for Client<S>where
S: Unpin,
impl<S> UnwindSafe for Client<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, Request> ServiceExt<Request> for T
impl<T, Request> ServiceExt<Request> for T
Source§fn ready(&mut self) -> Ready<'_, Self, Request>where
Self: Sized,
fn ready(&mut self) -> Ready<'_, Self, Request>where
Self: Sized,
👎Deprecated since 0.3.1: prefer
ready_and
which yields the serviceResolves when the service is ready to accept a request.
Source§fn ready_and(&mut self) -> ReadyAnd<'_, Self, Request>where
Self: Sized,
fn ready_and(&mut self) -> ReadyAnd<'_, Self, Request>where
Self: Sized,
Yields a mutable reference to the service when it is ready to accept a request.
Source§fn ready_oneshot(self) -> ReadyOneshot<Self, Request>where
Self: Sized,
fn ready_oneshot(self) -> ReadyOneshot<Self, Request>where
Self: Sized,
Yields the service when it is ready to accept a request.