This module provides tokio based async interface to libvirt API

extern crate tokio_core ; extern crate libvirt_rpc ; extern crate futures ; use :: tokio_core :: reactor :: Core ; use libvirt_rpc :: async :: Client ; use libvirt_rpc :: request ; use futures :: Future ; fn main () { let mut core = Core :: new (). unwrap (); let handle = core . handle (); let client = Client :: connect ( "/var/run/libvirt/libvirt-sock" , & handle ). unwrap (); let result = core . run ({ client . auth () . and_then ( | _ | client . open ()) . and_then ( | _ | client . domain (). list ( request :: ListAllDomainsFlags :: DOMAINS_ACTIVE | request :: ListAllDomainsFlags :: DOMAINS_INACTIVE )) }). unwrap (); println ! ( "{:?}" , result ); }