Struct wmi::result_enumerator::IWbemClassWrapper
source · [−]pub struct IWbemClassWrapper {
pub inner: NonNull<IWbemClassObject>,
}
Expand description
A wrapper around a raw pointer to IWbemClassObject, which also takes care of releasing the object when dropped.
Fields
inner: NonNull<IWbemClassObject>
Implementations
sourceimpl IWbemClassWrapper
impl IWbemClassWrapper
pub unsafe fn new(ptr: NonNull<IWbemClassObject>) -> Self
sourcepub unsafe fn clone(ptr: NonNull<IWbemClassObject>) -> Self
pub unsafe fn clone(ptr: NonNull<IWbemClassObject>) -> Self
Creates a copy of the pointer and calls AddRef to increment Reference Count.
See Managing the lifetime of an object and Rules for managing Ref count
sourcepub fn list_properties(&self) -> Result<Vec<String>, WMIError>
pub fn list_properties(&self) -> Result<Vec<String>, WMIError>
Return the names of all the properties of the given object.
pub fn get_property(&self, property_name: &str) -> Result<Variant, WMIError>
pub fn path(&self) -> Result<String, WMIError>
pub fn class(&self) -> Result<String, WMIError>
pub fn into_desr<T>(self) -> Result<T, WMIError> where
T: DeserializeOwned,
Trait Implementations
sourceimpl Debug for IWbemClassWrapper
impl Debug 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more