Struct jsonrpc_client_http::DefaultTlsClient
[−]
[src]
pub struct DefaultTlsClient;
Default Client
creator for TLS enabled clients. Creates a Hyper Client
based on
hyper_tls::HttpsConnector
.
Trait Implementations
impl Debug for DefaultTlsClient
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for DefaultTlsClient
[src]
fn default() -> DefaultTlsClient
[src]
Returns the "default value" for a type. Read more
impl ClientCreator for DefaultTlsClient
[src]
type Connect = HttpsConnector<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<HttpsConnector<HttpConnector>, Body>, Error>
[src]
&self,
handle: &Handle
) -> Result<Client<HttpsConnector<HttpConnector>, Body>, Error>
Tries to create a Hyper Client
based on the given Tokio Handle
.