Struct libvirt_rpc::async::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Libvirt client
Methods
impl Client
[src]
fn connect<P: AsRef<Path>>(path: P, handle: &Handle) -> Result<Client, Error>
opens libvirt connection over unix socket
fn auth(&self) -> BoxFuture<AuthListResponse, LibvirtError>
Retrieves authentication methods (currently only unauthenticated connections are supported)
fn open(&self) -> BoxFuture<(), LibvirtError>
Opens up a read-write connection to the system qemu hypervisor driver
fn version(&self) -> BoxFuture<(u32, u32, u32), LibvirtError>
Can be used to obtain the version of the libvirt software in use on the host
fn list(
&self,
flags: ListAllDomainsFlags
) -> BoxFuture<Vec<Domain>, LibvirtError>
&self,
flags: ListAllDomainsFlags
) -> BoxFuture<Vec<Domain>, LibvirtError>
Collect a possibly-filtered list of all domains, and return an allocated array of information for each.
fn lookup_by_uuid(&self, uuid: &Uuid) -> BoxFuture<Domain, LibvirtError>
Try to lookup a domain on the given hypervisor based on its UUID.
fn register_event(
&self,
dom: &Domain,
event: i32
) -> BoxFuture<EventStream<DomainEvent>, LibvirtError>
&self,
dom: &Domain,
event: i32
) -> BoxFuture<EventStream<DomainEvent>, LibvirtError>
Trait Implementations
impl Service for Client
[src]
type Request = LibvirtRequest
Requests handled by the service.
type Response = LibvirtResponse
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = BoxFuture<Self::Response, Self::Error>
The future response value.
fn call(&self, req: Self::Request) -> Self::Future
Process the request and return the response asynchronously.