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
) -> BoxFuture<Vec<StoragePool>, LibvirtError>
&self,
flags: ListAllStoragePoolsFlags
) -> BoxFuture<Vec<StoragePool>, LibvirtError>
Collect the list of storage pools
fn define(&self, xml: &str) -> BoxFuture<StoragePool, LibvirtError>
Define an inactive persistent storage pool or modify an existing persistent one from the XML description.
fn lookup_by_uuid(&self, uuid: &Uuid) -> BoxFuture<StoragePool, LibvirtError>
Fetch a storage pool based on its globally unique id
fn start(&self, pool: &StoragePool) -> BoxFuture<(), LibvirtError>
Starts an inactive storage pool
fn destroy(&self, pool: &StoragePool) -> BoxFuture<(), LibvirtError>
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) -> BoxFuture<(), LibvirtError>
Undefine an inactive storage pool
fn list_volume_names(
&self,
pool: &StoragePool
) -> BoxFuture<Vec<String>, LibvirtError>
&self,
pool: &StoragePool
) -> BoxFuture<Vec<String>, LibvirtError>
Fetch list of storage volume names
fn list_volumes(
&self,
pool: &StoragePool
) -> BoxFuture<Vec<Volume>, LibvirtError>
&self,
pool: &StoragePool
) -> BoxFuture<Vec<Volume>, LibvirtError>
Collect the list of storage volumes