#[repr(C)]pub struct AudioMetrics {
pub event_sounds_enabled: bool,
pub input_feedback_sounds_enabled: bool,
}Expand description
Audio-feedback preferences from the OS.
Controls whether the app should make sounds on events (error pings, notifications) or on input (clicks, key presses).
§Platform APIs
- Windows:
SystemParametersInfo(SPI_GETBEEP) - macOS:
NSSound.soundEffectAudioVolume - Linux:
org.gnome.desktop.sound event-sounds,org.gnome.desktop.sound input-feedback-sounds
Fields§
§event_sounds_enabled: boolShould the app make sounds on events? (Error ping, notification, etc.)
input_feedback_sounds_enabled: boolShould the app make sounds on input? (Clicks, typing feedback.)
Trait Implementations§
Source§impl Clone for AudioMetrics
impl Clone for AudioMetrics
Source§fn clone(&self) -> AudioMetrics
fn clone(&self) -> AudioMetrics
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 AudioMetrics
impl Debug for AudioMetrics
Source§impl Default for AudioMetrics
impl Default for AudioMetrics
Source§impl PartialEq for AudioMetrics
impl PartialEq for AudioMetrics
impl Copy for AudioMetrics
impl Eq for AudioMetrics
impl StructuralPartialEq for AudioMetrics
Auto Trait Implementations§
impl Freeze for AudioMetrics
impl RefUnwindSafe for AudioMetrics
impl Send for AudioMetrics
impl Sync for AudioMetrics
impl Unpin for AudioMetrics
impl UnsafeUnpin for AudioMetrics
impl UnwindSafe for AudioMetrics
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