Enum ndk::audio::AudioStreamState
source · [−]#[repr(u32)]
pub enum AudioStreamState {
Show 14 variants
Uninitialized,
Unknown,
Open,
Starting,
Started,
Pausing,
Paused,
Flushing,
Flushed,
Stopping,
Stopped,
Closing,
Closed,
Disconnected,
}
Available on crate feature
audio
only.Variants
Uninitialized
Unknown
Open
Starting
Started
Pausing
Paused
Flushing
Flushed
Stopping
Stopped
Closing
Closed
Disconnected
Implementations
Trait Implementations
sourceimpl Clone for AudioStreamState
impl Clone for AudioStreamState
sourcefn clone(&self) -> AudioStreamState
fn clone(&self) -> AudioStreamState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AudioStreamState
impl Debug for AudioStreamState
sourceimpl From<AudioStreamState> for u32
impl From<AudioStreamState> for u32
sourcefn from(enum_value: AudioStreamState) -> Self
fn from(enum_value: AudioStreamState) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<AudioStreamState> for AudioStreamState
impl PartialEq<AudioStreamState> for AudioStreamState
sourceimpl TryFrom<u32> for AudioStreamState
impl TryFrom<u32> for AudioStreamState
type Error = TryFromPrimitiveError<AudioStreamState>
type Error = TryFromPrimitiveError<AudioStreamState>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for AudioStreamState
impl TryFromPrimitive for AudioStreamState
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for AudioStreamState
impl Eq for AudioStreamState
impl StructuralEq for AudioStreamState
impl StructuralPartialEq for AudioStreamState
Auto Trait Implementations
impl RefUnwindSafe for AudioStreamState
impl Send for AudioStreamState
impl Sync for AudioStreamState
impl Unpin for AudioStreamState
impl UnwindSafe for AudioStreamState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more