Trait elastic::client::IntoAsyncHttpClient [] [src]

pub trait IntoAsyncHttpClient {
    type Error: StdError + Send + 'static;
    fn into_async_http_client(self) -> Result<AsyncHttpClient, Self::Error>;
}

A type that can be used to construct an async http client.

This trait has a few default implementations:

  • AsyncHttpClient: returns self
  • Handle: returns a new AsyncHttpClient bound to self.

Associated Types

The type of error returned by the conversion.

Required Methods

Convert self into an AsyncHttpClient.

Implementations on Foreign Types

impl IntoAsyncHttpClient for AsyncHttpClient
[src]

impl<'a> IntoAsyncHttpClient for &'a Handle
[src]

Implementors