Trait windows::Win32::Devices::Sensors::ISensorEvents_Impl

pub trait ISensorEvents_Impl: Sized {
    // Required methods
    fn OnStateChanged(
        &self,
        psensor: Option<&ISensor>,
        state: SensorState,
    ) -> Result<()>;
    fn OnDataUpdated(
        &self,
        psensor: Option<&ISensor>,
        pnewdata: Option<&ISensorDataReport>,
    ) -> Result<()>;
    fn OnEvent(
        &self,
        psensor: Option<&ISensor>,
        eventid: *const GUID,
        peventdata: Option<&IPortableDeviceValues>,
    ) -> Result<()>;
    fn OnLeave(&self, id: *const GUID) -> Result<()>;
}

Required Methods§

fn OnStateChanged( &self, psensor: Option<&ISensor>, state: SensorState, ) -> Result<()>

fn OnDataUpdated( &self, psensor: Option<&ISensor>, pnewdata: Option<&ISensorDataReport>, ) -> Result<()>

fn OnEvent( &self, psensor: Option<&ISensor>, eventid: *const GUID, peventdata: Option<&IPortableDeviceValues>, ) -> Result<()>

fn OnLeave(&self, id: *const GUID) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§