windows::Win32::Devices::PortableDevices

Trait IPortableDeviceResources_Impl

pub trait IPortableDeviceResources_Impl: IUnknownImpl {
    // Required methods
    fn GetSupportedResources(
        &self,
        pszobjectid: &PCWSTR,
    ) -> Result<IPortableDeviceKeyCollection>;
    fn GetResourceAttributes(
        &self,
        pszobjectid: &PCWSTR,
        key: *const PROPERTYKEY,
    ) -> Result<IPortableDeviceValues>;
    fn GetStream(
        &self,
        pszobjectid: &PCWSTR,
        key: *const PROPERTYKEY,
        dwmode: u32,
        pdwoptimalbuffersize: *mut u32,
        ppstream: OutRef<'_, IStream>,
    ) -> Result<()>;
    fn Delete(
        &self,
        pszobjectid: &PCWSTR,
        pkeys: Ref<'_, IPortableDeviceKeyCollection>,
    ) -> Result<()>;
    fn Cancel(&self) -> Result<()>;
    fn CreateResource(
        &self,
        presourceattributes: Ref<'_, IPortableDeviceValues>,
        ppdata: OutRef<'_, IStream>,
        pdwoptimalwritebuffersize: *mut u32,
        ppszcookie: *mut PWSTR,
    ) -> Result<()>;
}

Required Methods§

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

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

fn GetStream( &self, pszobjectid: &PCWSTR, key: *const PROPERTYKEY, dwmode: u32, pdwoptimalbuffersize: *mut u32, ppstream: OutRef<'_, IStream>, ) -> Result<()>

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

fn Cancel(&self) -> Result<()>

fn CreateResource( &self, presourceattributes: Ref<'_, IPortableDeviceValues>, ppdata: OutRef<'_, IStream>, pdwoptimalwritebuffersize: *mut u32, ppszcookie: *mut PWSTR, ) -> 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§