pub struct StorageQueryManager { /* private fields */ }Expand description
This managed object is used to query vCenter Server’s storage system entities.
Implementations§
Source§impl StorageQueryManager
impl StorageQueryManager
pub fn new(client: Arc<dyn VimClient>, mo_id: &str) -> Self
Sourcepub async fn query_hosts_with_attached_lun(
&self,
lun_uuid: &str,
) -> Result<Option<Vec<ManagedObjectReference>>>
pub async fn query_hosts_with_attached_lun( &self, lun_uuid: &str, ) -> Result<Option<Vec<ManagedObjectReference>>>
Query the set of all hosts which have the specified lun attached.
Requires Host.Config.Storage privilege on the hosts which have the lun in attached state.
Required privileges: System.Read
§Parameters:
§lun_uuid
The UUID of the ScsiLun device.
§Returns:
HostSystem The set of hosts which have the specified lun attached. No values are returned if there are no hosts with the specified lun in attached state.
Refers instances of HostSystem.
Trait Implementations§
Source§impl Clone for StorageQueryManager
impl Clone for StorageQueryManager
Source§fn clone(&self) -> StorageQueryManager
fn clone(&self) -> StorageQueryManager
Returns a duplicate 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 Freeze for StorageQueryManager
impl !RefUnwindSafe for StorageQueryManager
impl Send for StorageQueryManager
impl Sync for StorageQueryManager
impl Unpin for StorageQueryManager
impl UnsafeUnpin for StorageQueryManager
impl !UnwindSafe for StorageQueryManager
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