#[non_exhaustive]pub struct AudioLevelObserverOptions {
pub max_entries: NonZeroU16,
pub threshold: i8,
pub interval: u16,
pub app_data: AppData,
}
Expand description
AudioLevelObserver
options
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.max_entries: NonZeroU16
Maximum number of entries in the ‘volumes’ event. Default 1.
threshold: i8
Minimum average volume (in dBvo from -127 to 0) for entries in the ‘volumes’ event. Default -80.
interval: u16
Interval in ms for checking audio volumes. Default 1000.
app_data: AppData
Custom application data.
Trait Implementations§
Source§impl Clone for AudioLevelObserverOptions
impl Clone for AudioLevelObserverOptions
Source§fn clone(&self) -> AudioLevelObserverOptions
fn clone(&self) -> AudioLevelObserverOptions
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 AudioLevelObserverOptions
impl Debug for AudioLevelObserverOptions
Auto Trait Implementations§
impl Freeze for AudioLevelObserverOptions
impl !RefUnwindSafe for AudioLevelObserverOptions
impl Send for AudioLevelObserverOptions
impl Sync for AudioLevelObserverOptions
impl Unpin for AudioLevelObserverOptions
impl !UnwindSafe for AudioLevelObserverOptions
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