pub trait IPortableDevice_Impl: Sized {
    // Required methods
    fn Open(
        &self,
        pszpnpdeviceid: &PCWSTR,
        pclientinfo: Option<&IPortableDeviceValues>
    ) -> Result<()>;
    fn SendCommand(
        &self,
        dwflags: u32,
        pparameters: Option<&IPortableDeviceValues>
    ) -> Result<IPortableDeviceValues>;
    fn Content(&self) -> Result<IPortableDeviceContent>;
    fn Capabilities(&self) -> Result<IPortableDeviceCapabilities>;
    fn Cancel(&self) -> Result<()>;
    fn Close(&self) -> Result<()>;
    fn Advise(
        &self,
        dwflags: u32,
        pcallback: Option<&IPortableDeviceEventCallback>,
        pparameters: Option<&IPortableDeviceValues>
    ) -> Result<PWSTR>;
    fn Unadvise(&self, pszcookie: &PCWSTR) -> Result<()>;
    fn GetPnPDeviceID(&self) -> Result<PWSTR>;
}

Required Methods§

fn Open( &self, pszpnpdeviceid: &PCWSTR, pclientinfo: Option<&IPortableDeviceValues> ) -> Result<()>

fn SendCommand( &self, dwflags: u32, pparameters: Option<&IPortableDeviceValues> ) -> Result<IPortableDeviceValues>

fn Content(&self) -> Result<IPortableDeviceContent>

fn Capabilities(&self) -> Result<IPortableDeviceCapabilities>

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

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

fn Advise( &self, dwflags: u32, pcallback: Option<&IPortableDeviceEventCallback>, pparameters: Option<&IPortableDeviceValues> ) -> Result<PWSTR>

fn Unadvise(&self, pszcookie: &PCWSTR) -> Result<()>

fn GetPnPDeviceID(&self) -> Result<PWSTR>

Object Safety§

This trait is not object safe.

Implementors§