Type Definition elastic::client::AsyncClient [] [src]

type AsyncClient = Client<AsyncSender>;

An asynchronous Elasticsearch client.

Use an AsyncClientBuilder to configure and build an AsyncClient.

Examples

Create an asynchronous Client and send a ping request:

let mut core = Core::new()?;
let client = AsyncClientBuilder::new().build(&core.handle())?;

let response_future = client.ping().send();

core.run(response_future)?;