[][src]Struct virt::storage_vol::StorageVol

pub struct StorageVol { /* fields omitted */ }

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]

pub fn create_xml_from(
    pool: &StoragePool,
    xml: &str,
    vol: &StorageVol,
    flags: StorageVolCreateFlags
) -> Result<StorageVol, Error>
[src]

pub fn lookup_by_name(
    pool: &StoragePool,
    name: &str
) -> Result<StorageVol, Error>
[src]

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]

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]

pub fn upload(
    &self,
    stream: &Stream,
    offset: u64,
    length: u64,
    flags: u32
) -> Result<(), Error>
[src]

Trait Implementations

impl Drop for StorageVol[src]

impl Debug for StorageVol[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]