Trait IPortableDevice_Impl
pub trait IPortableDevice_Impl: IUnknownImpl {
// Required methods
fn Open(
&self,
pszpnpdeviceid: &PCWSTR,
pclientinfo: Ref<'_, IPortableDeviceValues>,
) -> Result<()>;
fn SendCommand(
&self,
dwflags: u32,
pparameters: Ref<'_, 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: Ref<'_, IPortableDeviceEventCallback>,
pparameters: Ref<'_, IPortableDeviceValues>,
) -> Result<PWSTR>;
fn Unadvise(&self, pszcookie: &PCWSTR) -> Result<()>;
fn GetPnPDeviceID(&self) -> Result<PWSTR>;
}
Required Methods§
fn Open( &self, pszpnpdeviceid: &PCWSTR, pclientinfo: Ref<'_, IPortableDeviceValues>, ) -> Result<()>
fn SendCommand( &self, dwflags: u32, pparameters: Ref<'_, 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: Ref<'_, IPortableDeviceEventCallback>, pparameters: Ref<'_, IPortableDeviceValues>, ) -> Result<PWSTR>
fn Unadvise(&self, pszcookie: &PCWSTR) -> Result<()>
fn GetPnPDeviceID(&self) -> Result<PWSTR>
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.