Struct wmi::result_enumerator::IWbemClassWrapper[][src]

pub struct IWbemClassWrapper {
    pub inner: NonNull<IWbemClassObject>,
}

A wrapper around a raw pointer to IWbemClassObject, which also takes care of releasing the object when dropped.

Fields

inner: NonNull<IWbemClassObject>

Implementations

impl IWbemClassWrapper[src]

pub unsafe fn new(ptr: NonNull<IWbemClassObject>) -> Self[src]

pub unsafe fn clone(ptr: NonNull<IWbemClassObject>) -> Self[src]

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

pub fn list_properties(&self) -> Result<Vec<String>, WMIError>[src]

Return the names of all the properties of the given object.

pub fn get_property(&self, property_name: &str) -> Result<Variant, WMIError>[src]

pub fn path(&self) -> Result<String, WMIError>[src]

pub fn class(&self) -> Result<String, WMIError>[src]

pub fn into_desr<T>(self) -> Result<T, WMIError> where
    T: DeserializeOwned
[src]

Trait Implementations

impl Debug for IWbemClassWrapper[src]

impl Drop for IWbemClassWrapper[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.