Struct virt::storage_vol::StorageVolInfo
source · pub struct StorageVolInfo {
pub kind: u32,
pub capacity: u64,
pub allocation: u64,
}
Fields§
§kind: u32
See: virStorageVolType
flags
capacity: u64
Logical size bytes.
allocation: u64
Current allocation bytes
Implementations§
source§impl StorageVolInfo
impl StorageVolInfo
sourcepub unsafe fn from_ptr(ptr: virStorageVolInfoPtr) -> StorageVolInfo
pub unsafe fn from_ptr(ptr: virStorageVolInfoPtr) -> StorageVolInfo
Safety
The caller must ensure that the pointer is valid.
Trait Implementations§
source§impl Clone for StorageVolInfo
impl Clone for StorageVolInfo
source§fn clone(&self) -> StorageVolInfo
fn clone(&self) -> StorageVolInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for StorageVolInfo
impl Send for StorageVolInfo
impl Sync for StorageVolInfo
impl Unpin for StorageVolInfo
impl UnwindSafe for StorageVolInfo
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