windows::Devices::Spi

Trait ISpiDeviceStatics_Impl

pub trait ISpiDeviceStatics_Impl: IUnknownImpl {
    // Required methods
    fn GetDeviceSelector(&self) -> Result<HSTRING>;
    fn GetDeviceSelectorFromFriendlyName(
        &self,
        friendlyName: &HSTRING,
    ) -> Result<HSTRING>;
    fn GetBusInfo(&self, busId: &HSTRING) -> Result<SpiBusInfo>;
    fn FromIdAsync(
        &self,
        busId: &HSTRING,
        settings: Ref<'_, SpiConnectionSettings>,
    ) -> Result<IAsyncOperation<SpiDevice>>;
}

Required Methods§

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

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

fn GetBusInfo(&self, busId: &HSTRING) -> Result<SpiBusInfo>

fn FromIdAsync( &self, busId: &HSTRING, settings: Ref<'_, SpiConnectionSettings>, ) -> Result<IAsyncOperation<SpiDevice>>

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§