Trait ISensorEvents_Impl
pub trait ISensorEvents_Impl: IUnknownImpl {
// Required methods
fn OnStateChanged(
&self,
psensor: Ref<'_, ISensor>,
state: SensorState,
) -> Result<()>;
fn OnDataUpdated(
&self,
psensor: Ref<'_, ISensor>,
pnewdata: Ref<'_, ISensorDataReport>,
) -> Result<()>;
fn OnEvent(
&self,
psensor: Ref<'_, ISensor>,
eventid: *const GUID,
peventdata: Ref<'_, IPortableDeviceValues>,
) -> Result<()>;
fn OnLeave(&self, id: *const GUID) -> Result<()>;
}
Required Methods§
fn OnStateChanged( &self, psensor: Ref<'_, ISensor>, state: SensorState, ) -> Result<()>
fn OnDataUpdated( &self, psensor: Ref<'_, ISensor>, pnewdata: Ref<'_, ISensorDataReport>, ) -> Result<()>
fn OnEvent( &self, psensor: Ref<'_, ISensor>, eventid: *const GUID, peventdata: Ref<'_, IPortableDeviceValues>, ) -> Result<()>
fn OnLeave(&self, id: *const GUID) -> 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.