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 DefaultClient
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for DefaultClient
[src]
impl Default for DefaultClient
fn default() -> DefaultClient
[src]
fn default() -> DefaultClient
Returns the "default value" for a type. Read more
impl ClientCreator for DefaultClient
[src]
impl ClientCreator for DefaultClient
type 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 DefaultClient
impl Sync for DefaultClient
impl Sync for DefaultClient