#[non_exhaustive]pub enum AudioDeviceEvent {
Added {
timestamp: u32,
device_id: u32,
is_microphone: bool,
},
Removed {
timestamp: u32,
device_id: u32,
is_microphone: bool,
},
}
Expand description
An event occurs on an audio device was added/removed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Added
An event when an audio device was added.
Fields
Removed
An event when an audio device was removed.
Trait Implementations§
Source§impl Clone for AudioDeviceEvent
impl Clone for AudioDeviceEvent
Source§fn clone(&self) -> AudioDeviceEvent
fn clone(&self) -> AudioDeviceEvent
Returns a duplicate 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 moreSource§impl Debug for AudioDeviceEvent
impl Debug for AudioDeviceEvent
Source§impl From<SDL_AudioDeviceEvent> for AudioDeviceEvent
impl From<SDL_AudioDeviceEvent> for AudioDeviceEvent
Source§fn from(raw: SDL_AudioDeviceEvent) -> Self
fn from(raw: SDL_AudioDeviceEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AudioDeviceEvent
impl RefUnwindSafe for AudioDeviceEvent
impl Send for AudioDeviceEvent
impl Sync for AudioDeviceEvent
impl Unpin for AudioDeviceEvent
impl UnwindSafe for AudioDeviceEvent
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