windows::Win32::Devices::Sensors

Trait ISensorManager_Impl

pub trait ISensorManager_Impl: IUnknownImpl {
    // Required methods
    fn GetSensorsByCategory(
        &self,
        sensorcategory: *const GUID,
    ) -> Result<ISensorCollection>;
    fn GetSensorsByType(
        &self,
        sensortype: *const GUID,
    ) -> Result<ISensorCollection>;
    fn GetSensorByID(&self, sensorid: *const GUID) -> Result<ISensor>;
    fn SetEventSink(&self, pevents: Ref<'_, ISensorManagerEvents>) -> Result<()>;
    fn RequestPermissions(
        &self,
        hparent: HWND,
        psensors: Ref<'_, ISensorCollection>,
        fmodal: BOOL,
    ) -> Result<()>;
}

Required Methods§

fn GetSensorsByCategory( &self, sensorcategory: *const GUID, ) -> Result<ISensorCollection>

fn GetSensorsByType(&self, sensortype: *const GUID) -> Result<ISensorCollection>

fn GetSensorByID(&self, sensorid: *const GUID) -> Result<ISensor>

fn SetEventSink(&self, pevents: Ref<'_, ISensorManagerEvents>) -> Result<()>

fn RequestPermissions( &self, hparent: HWND, psensors: Ref<'_, ISensorCollection>, fmodal: BOOL, ) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§