Enum rich_sdl2_rust::audio::event::AudioDeviceEvent
source · #[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
Fields
An event when an audio device was added.
Removed
Fields
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 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 moresource§impl Debug for AudioDeviceEvent
impl Debug for AudioDeviceEvent
Auto Trait Implementations§
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