Struct jsonrpc_client_http::DefaultClient [−][src]
pub struct DefaultClient;
Default Client creator that defaults to creating a standard Client with just
hyper::Client::new(handle).
Trait Implementations
impl Debug for DefaultClient[src]
impl Debug for DefaultClientfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for DefaultClient[src]
impl Default for DefaultClientfn default() -> DefaultClient[src]
fn default() -> DefaultClientReturns the "default value" for a type. Read more
impl ClientCreator for DefaultClient[src]
impl ClientCreator for DefaultClienttype Connect = HttpConnector
The connector type inside the Client created by this type.
type Error = Error
The error emitted by this type in case creating the Client failed.
fn create(&self, handle: &Handle) -> Result<Client<HttpConnector, Body>, Error>[src]
fn create(&self, handle: &Handle) -> Result<Client<HttpConnector, Body>, Error>Tries to create a Hyper Client based on the given Tokio Handle.
Auto Trait Implementations
impl Send for DefaultClient
impl Send for DefaultClientimpl Sync for DefaultClient
impl Sync for DefaultClient