Trait IMbnDeviceServicesEvents_Impl
pub trait IMbnDeviceServicesEvents_Impl: IUnknownImpl {
// Required methods
fn OnQuerySupportedCommandsComplete(
&self,
deviceservice: Ref<'_, IMbnDeviceService>,
commandidlist: *const SAFEARRAY,
status: HRESULT,
requestid: u32,
) -> Result<()>;
fn OnOpenCommandSessionComplete(
&self,
deviceservice: Ref<'_, IMbnDeviceService>,
status: HRESULT,
requestid: u32,
) -> Result<()>;
fn OnCloseCommandSessionComplete(
&self,
deviceservice: Ref<'_, IMbnDeviceService>,
status: HRESULT,
requestid: u32,
) -> Result<()>;
fn OnSetCommandComplete(
&self,
deviceservice: Ref<'_, IMbnDeviceService>,
responseid: u32,
deviceservicedata: *const SAFEARRAY,
status: HRESULT,
requestid: u32,
) -> Result<()>;
fn OnQueryCommandComplete(
&self,
deviceservice: Ref<'_, IMbnDeviceService>,
responseid: u32,
deviceservicedata: *const SAFEARRAY,
status: HRESULT,
requestid: u32,
) -> Result<()>;
fn OnEventNotification(
&self,
deviceservice: Ref<'_, IMbnDeviceService>,
eventid: u32,
deviceservicedata: *const SAFEARRAY,
) -> Result<()>;
fn OnOpenDataSessionComplete(
&self,
deviceservice: Ref<'_, IMbnDeviceService>,
status: HRESULT,
requestid: u32,
) -> Result<()>;
fn OnCloseDataSessionComplete(
&self,
deviceservice: Ref<'_, IMbnDeviceService>,
status: HRESULT,
requestid: u32,
) -> Result<()>;
fn OnWriteDataComplete(
&self,
deviceservice: Ref<'_, IMbnDeviceService>,
status: HRESULT,
requestid: u32,
) -> Result<()>;
fn OnReadData(
&self,
deviceservice: Ref<'_, IMbnDeviceService>,
deviceservicedata: *const SAFEARRAY,
) -> Result<()>;
fn OnInterfaceStateChange(
&self,
interfaceid: &BSTR,
statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE,
) -> Result<()>;
}
Required Methods§
fn OnQuerySupportedCommandsComplete( &self, deviceservice: Ref<'_, IMbnDeviceService>, commandidlist: *const SAFEARRAY, status: HRESULT, requestid: u32, ) -> Result<()>
fn OnOpenCommandSessionComplete( &self, deviceservice: Ref<'_, IMbnDeviceService>, status: HRESULT, requestid: u32, ) -> Result<()>
fn OnCloseCommandSessionComplete( &self, deviceservice: Ref<'_, IMbnDeviceService>, status: HRESULT, requestid: u32, ) -> Result<()>
fn OnSetCommandComplete( &self, deviceservice: Ref<'_, IMbnDeviceService>, responseid: u32, deviceservicedata: *const SAFEARRAY, status: HRESULT, requestid: u32, ) -> Result<()>
fn OnQueryCommandComplete( &self, deviceservice: Ref<'_, IMbnDeviceService>, responseid: u32, deviceservicedata: *const SAFEARRAY, status: HRESULT, requestid: u32, ) -> Result<()>
fn OnEventNotification( &self, deviceservice: Ref<'_, IMbnDeviceService>, eventid: u32, deviceservicedata: *const SAFEARRAY, ) -> Result<()>
fn OnOpenDataSessionComplete( &self, deviceservice: Ref<'_, IMbnDeviceService>, status: HRESULT, requestid: u32, ) -> Result<()>
fn OnCloseDataSessionComplete( &self, deviceservice: Ref<'_, IMbnDeviceService>, status: HRESULT, requestid: u32, ) -> Result<()>
fn OnWriteDataComplete( &self, deviceservice: Ref<'_, IMbnDeviceService>, status: HRESULT, requestid: u32, ) -> Result<()>
fn OnReadData( &self, deviceservice: Ref<'_, IMbnDeviceService>, deviceservicedata: *const SAFEARRAY, ) -> Result<()>
fn OnInterfaceStateChange( &self, interfaceid: &BSTR, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE, ) -> 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.