pub struct PoolOperations<'a> { /* private fields */ }
Expand description
Operations on libvirt storage pools
Implementations§
Source§impl<'a> PoolOperations<'a>
impl<'a> PoolOperations<'a>
Sourcepub fn list(
&self,
flags: ListAllStoragePoolsFlags,
) -> LibvirtFuture<Vec<StoragePool>>
pub fn list( &self, flags: ListAllStoragePoolsFlags, ) -> LibvirtFuture<Vec<StoragePool>>
Collect the list of storage pools
Sourcepub fn define(&self, xml: &str) -> LibvirtFuture<StoragePool>
pub fn define(&self, xml: &str) -> LibvirtFuture<StoragePool>
Define an inactive persistent storage pool or modify an existing persistent one from the XML description.
Sourcepub fn lookup_by_uuid(&self, uuid: &Uuid) -> LibvirtFuture<StoragePool>
pub fn lookup_by_uuid(&self, uuid: &Uuid) -> LibvirtFuture<StoragePool>
Fetch a storage pool based on its globally unique id
Sourcepub fn lookup_by_name(&self, name: &str) -> LibvirtFuture<StoragePool>
pub fn lookup_by_name(&self, name: &str) -> LibvirtFuture<StoragePool>
Fetch a storage pool based on its name
Sourcepub fn start(&self, pool: &StoragePool) -> LibvirtFuture<()>
pub fn start(&self, pool: &StoragePool) -> LibvirtFuture<()>
Starts an inactive storage pool
Sourcepub fn destroy(&self, pool: &StoragePool) -> LibvirtFuture<()>
pub 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()
Sourcepub fn undefine(&self, pool: StoragePool) -> LibvirtFuture<()>
pub fn undefine(&self, pool: StoragePool) -> LibvirtFuture<()>
Undefine an inactive storage pool
Sourcepub fn list_volume_names(
&self,
pool: &StoragePool,
) -> LibvirtFuture<Vec<String>>
pub fn list_volume_names( &self, pool: &StoragePool, ) -> LibvirtFuture<Vec<String>>
Fetch list of storage volume names
Sourcepub fn list_volumes(&self, pool: &StoragePool) -> LibvirtFuture<Vec<Volume>>
pub fn list_volumes(&self, pool: &StoragePool) -> LibvirtFuture<Vec<Volume>>
Collect the list of storage volumes
pub fn info(&self, pool: &StoragePool) -> LibvirtFuture<StoragePoolInfo>
Auto Trait Implementations§
impl<'a> Freeze for PoolOperations<'a>
impl<'a> !RefUnwindSafe for PoolOperations<'a>
impl<'a> !Send for PoolOperations<'a>
impl<'a> !Sync for PoolOperations<'a>
impl<'a> Unpin for PoolOperations<'a>
impl<'a> !UnwindSafe for PoolOperations<'a>
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