Struct windows::Win32::Media::Audio::IAudioSessionControl
pub struct IAudioSessionControl(/* private fields */);
Implementations§
§impl IAudioSessionControl
impl IAudioSessionControl
pub unsafe fn GetState(&self) -> Result<AudioSessionState>
pub unsafe fn GetDisplayName(&self) -> Result<PWSTR>
pub unsafe fn SetDisplayName<P0>(
&self,
value: P0,
eventcontext: *const GUID
) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn GetIconPath(&self) -> Result<PWSTR>
pub unsafe fn SetIconPath<P0>(
&self,
value: P0,
eventcontext: *const GUID
) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn GetGroupingParam(&self) -> Result<GUID>
pub unsafe fn SetGroupingParam( &self, override: *const GUID, eventcontext: *const GUID ) -> Result<()>
pub unsafe fn RegisterAudioSessionNotification<P0>(
&self,
newnotifications: P0
) -> Result<()>where
P0: IntoParam<IAudioSessionEvents>,
pub unsafe fn UnregisterAudioSessionNotification<P0>(
&self,
newnotifications: P0
) -> Result<()>where
P0: IntoParam<IAudioSessionEvents>,
Trait Implementations§
§impl Clone for IAudioSessionControl
impl Clone for IAudioSessionControl
§fn clone(&self) -> IAudioSessionControl
fn clone(&self) -> IAudioSessionControl
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IAudioSessionControl
impl Debug for IAudioSessionControl
§impl From<&IAudioSessionControl> for &IUnknown
impl From<&IAudioSessionControl> for &IUnknown
§fn from(value: &IAudioSessionControl) -> Self
fn from(value: &IAudioSessionControl) -> Self
Converts to this type from the input type.
§impl From<&IAudioSessionControl2> for &IAudioSessionControl
impl From<&IAudioSessionControl2> for &IAudioSessionControl
§fn from(value: &IAudioSessionControl2) -> Self
fn from(value: &IAudioSessionControl2) -> Self
Converts to this type from the input type.
§impl From<IAudioSessionControl> for IUnknown
impl From<IAudioSessionControl> for IUnknown
§fn from(value: IAudioSessionControl) -> Self
fn from(value: IAudioSessionControl) -> Self
Converts to this type from the input type.
§impl From<IAudioSessionControl2> for IAudioSessionControl
impl From<IAudioSessionControl2> for IAudioSessionControl
§fn from(value: IAudioSessionControl2) -> Self
fn from(value: IAudioSessionControl2) -> Self
Converts to this type from the input type.
§impl Interface for IAudioSessionControl
impl Interface for IAudioSessionControl
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for IAudioSessionControl
impl PartialEq for IAudioSessionControl
§fn eq(&self, other: &IAudioSessionControl) -> bool
fn eq(&self, other: &IAudioSessionControl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IAudioSessionControl
impl StructuralPartialEq for IAudioSessionControl
Auto Trait Implementations§
impl RefUnwindSafe for IAudioSessionControl
impl !Send for IAudioSessionControl
impl !Sync for IAudioSessionControl
impl Unpin for IAudioSessionControl
impl UnwindSafe for IAudioSessionControl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more