Trait windows::Win32::Devices::Sensors::ISensor_Impl

pub trait ISensor_Impl: Sized {
Show 15 methods // Required methods fn GetID(&self) -> Result<GUID>; fn GetCategory(&self) -> Result<GUID>; fn GetType(&self) -> Result<GUID>; fn GetFriendlyName(&self) -> Result<BSTR>; fn GetProperty(&self, key: *const PROPERTYKEY) -> Result<PROPVARIANT>; fn GetProperties( &self, pkeys: Option<&IPortableDeviceKeyCollection>, ) -> Result<IPortableDeviceValues>; fn GetSupportedDataFields(&self) -> Result<IPortableDeviceKeyCollection>; fn SetProperties( &self, pproperties: Option<&IPortableDeviceValues>, ) -> Result<IPortableDeviceValues>; fn SupportsDataField(&self, key: *const PROPERTYKEY) -> Result<VARIANT_BOOL>; fn GetState(&self) -> Result<SensorState>; fn GetData(&self) -> Result<ISensorDataReport>; fn SupportsEvent(&self, eventguid: *const GUID) -> Result<VARIANT_BOOL>; fn GetEventInterest( &self, ppvalues: *mut *mut GUID, pcount: *mut u32, ) -> Result<()>; fn SetEventInterest(&self, pvalues: *const GUID, count: u32) -> Result<()>; fn SetEventSink(&self, pevents: Option<&ISensorEvents>) -> Result<()>;
}

Required Methods§

fn GetID(&self) -> Result<GUID>

fn GetCategory(&self) -> Result<GUID>

fn GetType(&self) -> Result<GUID>

fn GetFriendlyName(&self) -> Result<BSTR>

fn GetProperty(&self, key: *const PROPERTYKEY) -> Result<PROPVARIANT>

fn GetProperties( &self, pkeys: Option<&IPortableDeviceKeyCollection>, ) -> Result<IPortableDeviceValues>

fn GetSupportedDataFields(&self) -> Result<IPortableDeviceKeyCollection>

fn SetProperties( &self, pproperties: Option<&IPortableDeviceValues>, ) -> Result<IPortableDeviceValues>

fn SupportsDataField(&self, key: *const PROPERTYKEY) -> Result<VARIANT_BOOL>

fn GetState(&self) -> Result<SensorState>

fn GetData(&self) -> Result<ISensorDataReport>

fn SupportsEvent(&self, eventguid: *const GUID) -> Result<VARIANT_BOOL>

fn GetEventInterest( &self, ppvalues: *mut *mut GUID, pcount: *mut u32, ) -> Result<()>

fn SetEventInterest(&self, pvalues: *const GUID, count: u32) -> Result<()>

fn SetEventSink(&self, pevents: Option<&ISensorEvents>) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§