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 domain(&self) -> DomainOperations
fn pool(&self) -> PoolOperations
fn volume(&self) -> VolumeOperations
Trait Implementations
impl Clone for Client
[src]
fn clone(&self) -> Client
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
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.