windows::Win32::Devices::FunctionDiscovery

Trait IFunctionInstanceCollection_Impl

pub trait IFunctionInstanceCollection_Impl: IUnknownImpl {
    // Required methods
    fn GetCount(&self) -> Result<u32>;
    fn Get(
        &self,
        pszinstanceidentity: &PCWSTR,
        pdwindex: *mut u32,
    ) -> Result<IFunctionInstance>;
    fn Item(&self, dwindex: u32) -> Result<IFunctionInstance>;
    fn Add(&self, pifunctioninstance: Ref<'_, IFunctionInstance>) -> Result<()>;
    fn Remove(&self, dwindex: u32) -> Result<IFunctionInstance>;
    fn Delete(&self, dwindex: u32) -> Result<()>;
    fn DeleteAll(&self) -> Result<()>;
}

Required Methods§

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

fn Get( &self, pszinstanceidentity: &PCWSTR, pdwindex: *mut u32, ) -> Result<IFunctionInstance>

fn Item(&self, dwindex: u32) -> Result<IFunctionInstance>

fn Add(&self, pifunctioninstance: Ref<'_, IFunctionInstance>) -> Result<()>

fn Remove(&self, dwindex: u32) -> Result<IFunctionInstance>

fn Delete(&self, dwindex: u32) -> Result<()>

fn DeleteAll(&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§