Enum ndk::audio::AudioPerformanceMode
source · #[non_exhaustive]#[repr(i32)]pub enum AudioPerformanceMode {
None = 10,
PowerSaving = 11,
LowLatency = 12,
}
Available on crate feature
audio
only.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.
None = 10
No particular performance needs. Default.
PowerSaving = 11
Extending battery life is more important than low latency.
This mode is not supported in input streams. For input, mode NONE will be used if this is requested.
LowLatency = 12
Reducing latency is more important than battery life.
Trait Implementations§
source§impl Clone for AudioPerformanceMode
impl Clone for AudioPerformanceMode
source§fn clone(&self) -> AudioPerformanceMode
fn clone(&self) -> AudioPerformanceMode
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 AudioPerformanceMode
impl Debug for AudioPerformanceMode
source§impl From<AudioPerformanceMode> for i32
impl From<AudioPerformanceMode> for i32
source§fn from(enum_value: AudioPerformanceMode) -> Self
fn from(enum_value: AudioPerformanceMode) -> Self
Converts to this type from the input type.
source§impl From<i32> for AudioPerformanceMode
impl From<i32> for AudioPerformanceMode
source§impl FromPrimitive for AudioPerformanceMode
impl FromPrimitive for AudioPerformanceMode
source§impl PartialEq for AudioPerformanceMode
impl PartialEq for AudioPerformanceMode
source§fn eq(&self, other: &AudioPerformanceMode) -> bool
fn eq(&self, other: &AudioPerformanceMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AudioPerformanceMode
impl Eq for AudioPerformanceMode
impl StructuralPartialEq for AudioPerformanceMode
Auto Trait Implementations§
impl Freeze for AudioPerformanceMode
impl RefUnwindSafe for AudioPerformanceMode
impl Send for AudioPerformanceMode
impl Sync for AudioPerformanceMode
impl Unpin for AudioPerformanceMode
impl UnwindSafe for AudioPerformanceMode
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