Enum ndk::audio::AudioCallbackResult
source · #[non_exhaustive]#[repr(i32)]pub enum AudioCallbackResult {
Continue = 0,
Stop = 1,
}
Available on crate feature
audio
only.Expand description
Value returned the data callback function.
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.
Continue = 0
Continue calling the callback.
Stop = 1
Stop calling the callback.
The application will still need to call AudioStream::request_pause()
or AudioStream::request_stop()
.
Trait Implementations§
source§impl Clone for AudioCallbackResult
impl Clone for AudioCallbackResult
source§fn clone(&self) -> AudioCallbackResult
fn clone(&self) -> AudioCallbackResult
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 AudioCallbackResult
impl Debug for AudioCallbackResult
source§impl From<AudioCallbackResult> for i32
impl From<AudioCallbackResult> for i32
source§fn from(enum_value: AudioCallbackResult) -> Self
fn from(enum_value: AudioCallbackResult) -> Self
Converts to this type from the input type.
source§impl PartialEq for AudioCallbackResult
impl PartialEq for AudioCallbackResult
source§fn eq(&self, other: &AudioCallbackResult) -> bool
fn eq(&self, other: &AudioCallbackResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AudioCallbackResult
impl Eq for AudioCallbackResult
impl StructuralPartialEq for AudioCallbackResult
Auto Trait Implementations§
impl Freeze for AudioCallbackResult
impl RefUnwindSafe for AudioCallbackResult
impl Send for AudioCallbackResult
impl Sync for AudioCallbackResult
impl Unpin for AudioCallbackResult
impl UnwindSafe for AudioCallbackResult
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