windows::Win32::Media::Audio

Trait IMMNotificationClient_Impl

pub trait IMMNotificationClient_Impl: IUnknownImpl {
    // Required methods
    fn OnDeviceStateChanged(
        &self,
        pwstrdeviceid: &PCWSTR,
        dwnewstate: DEVICE_STATE,
    ) -> Result<()>;
    fn OnDeviceAdded(&self, pwstrdeviceid: &PCWSTR) -> Result<()>;
    fn OnDeviceRemoved(&self, pwstrdeviceid: &PCWSTR) -> Result<()>;
    fn OnDefaultDeviceChanged(
        &self,
        flow: EDataFlow,
        role: ERole,
        pwstrdefaultdeviceid: &PCWSTR,
    ) -> Result<()>;
    fn OnPropertyValueChanged(
        &self,
        pwstrdeviceid: &PCWSTR,
        key: &PROPERTYKEY,
    ) -> Result<()>;
}

Required Methods§

fn OnDeviceStateChanged( &self, pwstrdeviceid: &PCWSTR, dwnewstate: DEVICE_STATE, ) -> Result<()>

fn OnDeviceAdded(&self, pwstrdeviceid: &PCWSTR) -> Result<()>

fn OnDeviceRemoved(&self, pwstrdeviceid: &PCWSTR) -> Result<()>

fn OnDefaultDeviceChanged( &self, flow: EDataFlow, role: ERole, pwstrdefaultdeviceid: &PCWSTR, ) -> Result<()>

fn OnPropertyValueChanged( &self, pwstrdeviceid: &PCWSTR, key: &PROPERTYKEY, ) -> 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.

Implementors§