From: Mathias Pius <math...@pius.io>

This patch implements virStoragePoolListAllVolumes and 
virStoragePoolListVolumes for the StoragePool object. I'm not too familiar with 
the libvirt codebase, so I've used similar functions from connect.rs and 
domain.rs for so the implementations should (hopefully) be as correct as those. 
I've taken the liberty of using Vec::with_capacity when allocating vectors to 
store the result of these operations in, to prevent reallocations while 
converting the object types from the internal type to StorageVol and Strings.

Feedback is very welcome!

Mathias Pius (3):
  Implement virStoragePoolListAllVolumes and virStoragePoolListVolumes
    for StoragePool
  cargo fmt
  Newline at end of file

 src/storage_pool.rs   | 55 ++++++++++++++++++++++++++++++++++++++++++-
 tests/storage_pool.rs | 34 ++++++++++++++++++++++++++
 2 files changed, 88 insertions(+), 1 deletion(-)

-- 
2.25.0

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to