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
: returnsself
Handle
: returns a newAsyncHttpClient
bound toself
.
Associated Types
Required Methods
fn into_async_http_client(self) -> Result<AsyncHttpClient, Self::Error>
Convert self
into an AsyncHttpClient
.