Struct wmi::result_enumerator::IWbemClassWrapper
source · #[repr(transparent)]pub struct IWbemClassWrapper {
pub inner: IWbemClassObject,
}
Expand description
A wrapper around a raw pointer to IWbemClassObject, which also takes care of releasing the object when dropped.
Fields§
§inner: IWbemClassObject
Implementations§
source§impl IWbemClassWrapper
impl IWbemClassWrapper
pub fn new(inner: IWbemClassObject) -> Self
sourcepub fn list_properties(&self) -> WMIResult<Vec<String>>
pub fn list_properties(&self) -> WMIResult<Vec<String>>
Return the names of all the properties of the given object.
pub fn get_property(&self, property_name: &str) -> WMIResult<Variant>
pub fn path(&self) -> WMIResult<String>
pub fn class(&self) -> WMIResult<String>
pub fn into_desr<T>(self) -> WMIResult<T>where
T: DeserializeOwned,
Trait Implementations§
source§impl Clone for IWbemClassWrapper
impl Clone for IWbemClassWrapper
source§fn clone(&self) -> IWbemClassWrapper
fn clone(&self) -> IWbemClassWrapper
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 moresource§impl Debug for IWbemClassWrapper
impl Debug for IWbemClassWrapper
source§impl PartialEq for IWbemClassWrapper
impl PartialEq for IWbemClassWrapper
source§fn eq(&self, other: &IWbemClassWrapper) -> bool
fn eq(&self, other: &IWbemClassWrapper) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for IWbemClassWrapper
impl Serialize for IWbemClassWrapper
impl Eq for IWbemClassWrapper
impl StructuralPartialEq for IWbemClassWrapper
Auto Trait Implementations§
impl RefUnwindSafe for IWbemClassWrapper
impl !Send for IWbemClassWrapper
impl !Sync for IWbemClassWrapper
impl Unpin for IWbemClassWrapper
impl UnwindSafe for IWbemClassWrapper
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