windows::Win32::Devices::Sensors

Trait ISensorCollection_Impl

pub trait ISensorCollection_Impl: IUnknownImpl {
    // Required methods
    fn GetAt(&self, ulindex: u32) -> Result<ISensor>;
    fn GetCount(&self) -> Result<u32>;
    fn Add(&self, psensor: Ref<'_, ISensor>) -> Result<()>;
    fn Remove(&self, psensor: Ref<'_, ISensor>) -> Result<()>;
    fn RemoveByID(&self, sensorid: *const GUID) -> Result<()>;
    fn Clear(&self) -> Result<()>;
}

Required Methods§

fn GetAt(&self, ulindex: u32) -> Result<ISensor>

fn GetCount(&self) -> Result<u32>

fn Add(&self, psensor: Ref<'_, ISensor>) -> Result<()>

fn Remove(&self, psensor: Ref<'_, ISensor>) -> Result<()>

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

fn Clear(&self) -> 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§