windows::Win32::Devices::PortableDevices

Trait IPortableDeviceService_Impl

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

Required Methods§

fn Open( &self, pszpnpserviceid: &PCWSTR, pclientinfo: Ref<'_, 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: Ref<'_, IPortableDeviceEventCallback>, pparameters: Ref<'_, IPortableDeviceValues>, ) -> Result<PWSTR>

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

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

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§