pub enum AudioDeviceEnumeratorEvent {
OnDeviceAdded {
device: AudioDeviceInfo,
},
OnDeviceRemoved {
device_token: u64,
},
OnDeviceGainChanged {
device_token: u64,
gain_info: AudioGainInfo,
},
OnDefaultDeviceChanged {
old_default_token: u64,
new_default_token: u64,
},
}
Variants§
OnDeviceAdded
Fields
§
device: AudioDeviceInfo
OnDeviceRemoved
OnDeviceGainChanged
OnDefaultDeviceChanged
Implementations§
Source§impl AudioDeviceEnumeratorEvent
impl AudioDeviceEnumeratorEvent
pub fn into_on_device_added(self) -> Option<AudioDeviceInfo>
pub fn into_on_device_removed(self) -> Option<u64>
pub fn into_on_device_gain_changed(self) -> Option<(u64, AudioGainInfo)>
pub fn into_on_default_device_changed(self) -> Option<(u64, u64)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioDeviceEnumeratorEvent
impl RefUnwindSafe for AudioDeviceEnumeratorEvent
impl Send for AudioDeviceEnumeratorEvent
impl Sync for AudioDeviceEnumeratorEvent
impl Unpin for AudioDeviceEnumeratorEvent
impl UnwindSafe for AudioDeviceEnumeratorEvent
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