Enum ndk::audio::AudioStreamState
source · #[non_exhaustive]#[repr(i32)]pub enum AudioStreamState {
Show 14 variants
Uninitialized = 0,
Unknown = 1,
Open = 2,
Starting = 3,
Started = 4,
Pausing = 5,
Paused = 6,
Flushing = 7,
Flushed = 8,
Stopping = 9,
Stopped = 10,
Closing = 11,
Closed = 12,
Disconnected = 13,
}
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.
Uninitialized = 0
Unknown = 1
Open = 2
Starting = 3
Started = 4
Pausing = 5
Paused = 6
Flushing = 7
Flushed = 8
Stopping = 9
Stopped = 10
Closing = 11
Closed = 12
Disconnected = 13
Implementations§
Trait Implementations§
source§impl Clone for AudioStreamState
impl Clone for AudioStreamState
source§fn clone(&self) -> AudioStreamState
fn clone(&self) -> AudioStreamState
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 AudioStreamState
impl Debug for AudioStreamState
source§impl From<AudioStreamState> for i32
impl From<AudioStreamState> for i32
source§fn from(enum_value: AudioStreamState) -> Self
fn from(enum_value: AudioStreamState) -> Self
Converts to this type from the input type.
source§impl From<i32> for AudioStreamState
impl From<i32> for AudioStreamState
source§impl FromPrimitive for AudioStreamState
impl FromPrimitive for AudioStreamState
source§impl PartialEq for AudioStreamState
impl PartialEq for AudioStreamState
source§fn eq(&self, other: &AudioStreamState) -> bool
fn eq(&self, other: &AudioStreamState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AudioStreamState
impl Eq for AudioStreamState
impl StructuralPartialEq for AudioStreamState
Auto Trait Implementations§
impl Freeze for AudioStreamState
impl RefUnwindSafe for AudioStreamState
impl Send for AudioStreamState
impl Sync for AudioStreamState
impl Unpin for AudioStreamState
impl UnwindSafe for AudioStreamState
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