Trait IAudioSessionControl_Impl
pub trait IAudioSessionControl_Impl: IUnknownImpl {
// Required methods
fn GetState(&self) -> Result<AudioSessionState>;
fn GetDisplayName(&self) -> Result<PWSTR>;
fn SetDisplayName(
&self,
value: &PCWSTR,
eventcontext: *const GUID,
) -> Result<()>;
fn GetIconPath(&self) -> Result<PWSTR>;
fn SetIconPath(
&self,
value: &PCWSTR,
eventcontext: *const GUID,
) -> Result<()>;
fn GetGroupingParam(&self) -> Result<GUID>;
fn SetGroupingParam(
&self,
override: *const GUID,
eventcontext: *const GUID,
) -> Result<()>;
fn RegisterAudioSessionNotification(
&self,
newnotifications: Ref<'_, IAudioSessionEvents>,
) -> Result<()>;
fn UnregisterAudioSessionNotification(
&self,
newnotifications: Ref<'_, IAudioSessionEvents>,
) -> Result<()>;
}
Required Methods§
fn GetState(&self) -> Result<AudioSessionState>
fn GetDisplayName(&self) -> Result<PWSTR>
fn SetDisplayName( &self, value: &PCWSTR, eventcontext: *const GUID, ) -> Result<()>
fn GetIconPath(&self) -> Result<PWSTR>
fn SetIconPath(&self, value: &PCWSTR, eventcontext: *const GUID) -> Result<()>
fn GetGroupingParam(&self) -> Result<GUID>
fn SetGroupingParam( &self, override: *const GUID, eventcontext: *const GUID, ) -> Result<()>
fn RegisterAudioSessionNotification( &self, newnotifications: Ref<'_, IAudioSessionEvents>, ) -> Result<()>
fn UnregisterAudioSessionNotification( &self, newnotifications: Ref<'_, IAudioSessionEvents>, ) -> 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.