pub struct Client { /* private fields */ }
Expand description
Libvirt client
Implementations§
Source§impl Client
impl Client
Sourcepub fn connect<P: AsRef<Path>>(
path: P,
handle: &Handle,
) -> Result<Client, Error>
pub fn connect<P: AsRef<Path>>( path: P, handle: &Handle, ) -> Result<Client, Error>
opens libvirt connection over unix socket
Sourcepub fn auth(&self) -> LibvirtFuture<AuthListResponse>
pub fn auth(&self) -> LibvirtFuture<AuthListResponse>
Retrieves authentication methods (currently only unauthenticated connections are supported)
Sourcepub fn open(&self) -> LibvirtFuture<()>
pub fn open(&self) -> LibvirtFuture<()>
Opens up a read-write connection to the system qemu hypervisor driver
Sourcepub fn version(&self) -> LibvirtFuture<(u32, u32, u32)>
pub fn version(&self) -> LibvirtFuture<(u32, u32, u32)>
Can be used to obtain the version of the libvirt software in use on the host
pub fn node_info(&self) -> LibvirtFuture<NodeInfo>
pub fn domain(&self) -> DomainOperations<'_>
pub fn pool(&self) -> PoolOperations<'_>
pub fn volume(&self) -> VolumeOperations<'_>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl !Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more