pub trait IPortableDeviceService_Impl: Sized {
// Required methods
fn Open(
&self,
pszpnpserviceid: &PCWSTR,
pclientinfo: Option<&IPortableDeviceValues>,
) -> Result<()>;
fn Capabilities(&self) -> Result<IPortableDeviceServiceCapabilities>;
fn Content(&self) -> Result<IPortableDeviceContent2>;
fn Methods(&self) -> Result<IPortableDeviceServiceMethods>;
fn Cancel(&self) -> Result<()>;
fn Close(&self) -> Result<()>;
fn GetServiceObjectID(&self) -> Result<PWSTR>;
fn GetPnPServiceID(&self) -> Result<PWSTR>;
fn Advise(
&self,
dwflags: u32,
pcallback: Option<&IPortableDeviceEventCallback>,
pparameters: Option<&IPortableDeviceValues>,
) -> Result<PWSTR>;
fn Unadvise(&self, pszcookie: &PCWSTR) -> Result<()>;
fn SendCommand(
&self,
dwflags: u32,
pparameters: Option<&IPortableDeviceValues>,
) -> Result<IPortableDeviceValues>;
}
Required Methods§
fn Open( &self, pszpnpserviceid: &PCWSTR, pclientinfo: Option<&IPortableDeviceValues>, ) -> Result<()>
fn Capabilities(&self) -> Result<IPortableDeviceServiceCapabilities>
fn Content(&self) -> Result<IPortableDeviceContent2>
fn Methods(&self) -> Result<IPortableDeviceServiceMethods>
fn Cancel(&self) -> Result<()>
fn Close(&self) -> Result<()>
fn GetServiceObjectID(&self) -> Result<PWSTR>
fn GetPnPServiceID(&self) -> Result<PWSTR>
fn Advise( &self, dwflags: u32, pcallback: Option<&IPortableDeviceEventCallback>, pparameters: Option<&IPortableDeviceValues>, ) -> Result<PWSTR>
fn Unadvise(&self, pszcookie: &PCWSTR) -> Result<()>
fn SendCommand( &self, dwflags: u32, pparameters: Option<&IPortableDeviceValues>, ) -> Result<IPortableDeviceValues>
Object Safety§
This trait is not object safe.