Struct wmi::result_enumerator::IWbemClassWrapper [−][src]
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]
T: DeserializeOwned,
Trait Implementations
impl Debug for IWbemClassWrapper
[src]
impl Drop for IWbemClassWrapper
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,