Enum ndk::audio::AudioSharingMode
source · #[non_exhaustive]#[repr(i32)]pub enum AudioSharingMode {
Exclusive = 0,
Shared = 1,
}
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.
Exclusive = 0
This will be the only stream using a particular source or sink. This mode will provide the lowest possible latency. You should close Exclusive streams immediately when you are not using them.
Multiple applications will be mixed by the AAudio Server. This will have higher latency than the Exclusive mode.
Trait Implementations§
source§impl Clone for AudioSharingMode
impl Clone for AudioSharingMode
source§fn clone(&self) -> AudioSharingMode
fn clone(&self) -> AudioSharingMode
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 AudioSharingMode
impl Debug for AudioSharingMode
source§impl From<AudioSharingMode> for i32
impl From<AudioSharingMode> for i32
source§fn from(enum_value: AudioSharingMode) -> Self
fn from(enum_value: AudioSharingMode) -> Self
Converts to this type from the input type.
source§impl From<i32> for AudioSharingMode
impl From<i32> for AudioSharingMode
source§impl FromPrimitive for AudioSharingMode
impl FromPrimitive for AudioSharingMode
source§impl PartialEq for AudioSharingMode
impl PartialEq for AudioSharingMode
source§fn eq(&self, other: &AudioSharingMode) -> bool
fn eq(&self, other: &AudioSharingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AudioSharingMode
impl Eq for AudioSharingMode
impl StructuralPartialEq for AudioSharingMode
Auto Trait Implementations§
impl Freeze for AudioSharingMode
impl RefUnwindSafe for AudioSharingMode
impl Send for AudioSharingMode
impl Sync for AudioSharingMode
impl Unpin for AudioSharingMode
impl UnwindSafe for AudioSharingMode
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