Struct libvirt_rpc::async::PoolOperations
[−]
[src]
pub struct PoolOperations<'a> { /* fields omitted */ }
Operations on libvirt storage pools
Methods
impl<'a> PoolOperations<'a>
[src]
fn list(
&self,
flags: ListAllStoragePoolsFlags
) -> LibvirtFuture<Vec<StoragePool>>
&self,
flags: ListAllStoragePoolsFlags
) -> LibvirtFuture<Vec<StoragePool>>
Collect the list of storage pools
fn define(&self, xml: &str) -> LibvirtFuture<StoragePool>
Define an inactive persistent storage pool or modify an existing persistent one from the XML description.
fn lookup_by_uuid(&self, uuid: &Uuid) -> LibvirtFuture<StoragePool>
Fetch a storage pool based on its globally unique id
fn lookup_by_name(&self, name: &str) -> LibvirtFuture<StoragePool>
Fetch a storage pool based on its name
fn start(&self, pool: &StoragePool) -> LibvirtFuture<()>
Starts an inactive storage pool
fn destroy(&self, pool: &StoragePool) -> LibvirtFuture<()>
Destroy an active storage pool. This will deactivate the pool on the host, but keep any persistent config associated with it. If it has a persistent config it can later be restarted with start()
fn undefine(&self, pool: StoragePool) -> LibvirtFuture<()>
Undefine an inactive storage pool
fn list_volume_names(&self, pool: &StoragePool) -> LibvirtFuture<Vec<String>>
Fetch list of storage volume names
fn list_volumes(&self, pool: &StoragePool) -> LibvirtFuture<Vec<Volume>>
Collect the list of storage volumes