[−][src]Struct virt::storage_vol::StorageVol
Provides APIs for the management of storage volumes.
See http://libvirt.org/html/libvirt-libvirt-storage.html
Methods
impl StorageVol
[src]
pub fn new(ptr: virStorageVolPtr) -> StorageVol
[src]
pub fn as_ptr(&self) -> virStorageVolPtr
[src]
pub fn get_connect(&self) -> Result<Connect, Error>
[src]
pub fn create_xml(
pool: &StoragePool,
xml: &str,
flags: StorageVolCreateFlags
) -> Result<StorageVol, Error>
[src]
pool: &StoragePool,
xml: &str,
flags: StorageVolCreateFlags
) -> Result<StorageVol, Error>
pub fn create_xml_from(
pool: &StoragePool,
xml: &str,
vol: &StorageVol,
flags: StorageVolCreateFlags
) -> Result<StorageVol, Error>
[src]
pool: &StoragePool,
xml: &str,
vol: &StorageVol,
flags: StorageVolCreateFlags
) -> Result<StorageVol, Error>
pub fn lookup_by_name(
pool: &StoragePool,
name: &str
) -> Result<StorageVol, Error>
[src]
pool: &StoragePool,
name: &str
) -> Result<StorageVol, Error>
pub fn lookup_by_key(conn: &Connect, key: &str) -> Result<StorageVol, Error>
[src]
pub fn lookup_by_path(conn: &Connect, path: &str) -> Result<StorageVol, Error>
[src]
pub fn get_name(&self) -> Result<String, Error>
[src]
pub fn get_key(&self) -> Result<String, Error>
[src]
pub fn get_path(&self) -> Result<String, Error>
[src]
pub fn get_xml_desc(&self, flags: u32) -> Result<String, Error>
[src]
pub fn delete(&self, flags: u32) -> Result<(), Error>
[src]
pub fn wipe(&self, flags: u32) -> Result<(), Error>
[src]
pub fn wipe_pattern(
&self,
algo: StorageVolWipeAlgorithm,
flags: u32
) -> Result<(), Error>
[src]
&self,
algo: StorageVolWipeAlgorithm,
flags: u32
) -> Result<(), Error>
pub fn free(&mut self) -> Result<(), Error>
[src]
pub fn resize(&self, capacity: u64, flags: u32) -> Result<u32, Error>
[src]
pub fn get_info(&self) -> Result<StorageVolInfo, Error>
[src]
pub fn get_info_flags(&self, flags: u32) -> Result<StorageVolInfo, Error>
[src]
pub fn download(
&self,
stream: &Stream,
offset: u64,
length: u64,
flags: u32
) -> Result<(), Error>
[src]
&self,
stream: &Stream,
offset: u64,
length: u64,
flags: u32
) -> Result<(), Error>
pub fn upload(
&self,
stream: &Stream,
offset: u64,
length: u64,
flags: u32
) -> Result<(), Error>
[src]
&self,
stream: &Stream,
offset: u64,
length: u64,
flags: u32
) -> Result<(), Error>
Trait Implementations
impl Drop for StorageVol
[src]
impl Debug for StorageVol
[src]
Auto Trait Implementations
impl Unpin for StorageVol
impl !Sync for StorageVol
impl !Send for StorageVol
impl UnwindSafe for StorageVol
impl RefUnwindSafe for StorageVol
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,