windows::Win32::Devices::PortableDevices

Trait IPortableDeviceProperties_Impl

pub trait IPortableDeviceProperties_Impl: IUnknownImpl {
    // Required methods
    fn GetSupportedProperties(
        &self,
        pszobjectid: &PCWSTR,
    ) -> Result<IPortableDeviceKeyCollection>;
    fn GetPropertyAttributes(
        &self,
        pszobjectid: &PCWSTR,
        key: *const PROPERTYKEY,
    ) -> Result<IPortableDeviceValues>;
    fn GetValues(
        &self,
        pszobjectid: &PCWSTR,
        pkeys: Ref<'_, IPortableDeviceKeyCollection>,
    ) -> Result<IPortableDeviceValues>;
    fn SetValues(
        &self,
        pszobjectid: &PCWSTR,
        pvalues: Ref<'_, IPortableDeviceValues>,
    ) -> Result<IPortableDeviceValues>;
    fn Delete(
        &self,
        pszobjectid: &PCWSTR,
        pkeys: Ref<'_, IPortableDeviceKeyCollection>,
    ) -> Result<()>;
    fn Cancel(&self) -> Result<()>;
}

Required Methods§

fn GetSupportedProperties( &self, pszobjectid: &PCWSTR, ) -> Result<IPortableDeviceKeyCollection>

fn GetPropertyAttributes( &self, pszobjectid: &PCWSTR, key: *const PROPERTYKEY, ) -> Result<IPortableDeviceValues>

fn GetValues( &self, pszobjectid: &PCWSTR, pkeys: Ref<'_, IPortableDeviceKeyCollection>, ) -> Result<IPortableDeviceValues>

fn SetValues( &self, pszobjectid: &PCWSTR, pvalues: Ref<'_, IPortableDeviceValues>, ) -> Result<IPortableDeviceValues>

fn Delete( &self, pszobjectid: &PCWSTR, pkeys: Ref<'_, IPortableDeviceKeyCollection>, ) -> Result<()>

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