Trait IAudioSessionEvents_Impl
pub trait IAudioSessionEvents_Impl: IUnknownImpl {
// Required methods
fn OnDisplayNameChanged(
&self,
newdisplayname: &PCWSTR,
eventcontext: *const GUID,
) -> Result<()>;
fn OnIconPathChanged(
&self,
newiconpath: &PCWSTR,
eventcontext: *const GUID,
) -> Result<()>;
fn OnSimpleVolumeChanged(
&self,
newvolume: f32,
newmute: BOOL,
eventcontext: *const GUID,
) -> Result<()>;
fn OnChannelVolumeChanged(
&self,
channelcount: u32,
newchannelvolumearray: *const f32,
changedchannel: u32,
eventcontext: *const GUID,
) -> Result<()>;
fn OnGroupingParamChanged(
&self,
newgroupingparam: *const GUID,
eventcontext: *const GUID,
) -> Result<()>;
fn OnStateChanged(&self, newstate: AudioSessionState) -> Result<()>;
fn OnSessionDisconnected(
&self,
disconnectreason: AudioSessionDisconnectReason,
) -> Result<()>;
}
Required Methods§
fn OnDisplayNameChanged( &self, newdisplayname: &PCWSTR, eventcontext: *const GUID, ) -> Result<()>
fn OnIconPathChanged( &self, newiconpath: &PCWSTR, eventcontext: *const GUID, ) -> Result<()>
fn OnSimpleVolumeChanged( &self, newvolume: f32, newmute: BOOL, eventcontext: *const GUID, ) -> Result<()>
fn OnChannelVolumeChanged( &self, channelcount: u32, newchannelvolumearray: *const f32, changedchannel: u32, eventcontext: *const GUID, ) -> Result<()>
fn OnGroupingParamChanged( &self, newgroupingparam: *const GUID, eventcontext: *const GUID, ) -> Result<()>
fn OnStateChanged(&self, newstate: AudioSessionState) -> Result<()>
fn OnSessionDisconnected( &self, disconnectreason: AudioSessionDisconnectReason, ) -> 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.