windows::Devices::I2c

Trait II2cDeviceStatics_Impl

pub trait II2cDeviceStatics_Impl: IUnknownImpl {
    // Required methods
    fn GetDeviceSelector(&self) -> Result<HSTRING>;
    fn GetDeviceSelectorFromFriendlyName(
        &self,
        friendlyName: &HSTRING,
    ) -> Result<HSTRING>;
    fn FromIdAsync(
        &self,
        deviceId: &HSTRING,
        settings: Ref<'_, I2cConnectionSettings>,
    ) -> Result<IAsyncOperation<I2cDevice>>;
}

Required Methods§

fn GetDeviceSelector(&self) -> Result<HSTRING>

fn GetDeviceSelectorFromFriendlyName( &self, friendlyName: &HSTRING, ) -> Result<HSTRING>

fn FromIdAsync( &self, deviceId: &HSTRING, settings: Ref<'_, I2cConnectionSettings>, ) -> Result<IAsyncOperation<I2cDevice>>

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§