pub enum RecorderState {
Uninitialized = 0,
Initialized = 1,
Recording = 3,
}Expand description
Audio recorder state
Defines the various states of the audio recorder.
§Examples
use android_media::RecorderState;
assert_eq!(RecorderState::Uninitialized.value(), 0);
assert_eq!(RecorderState::Initialized.value(), 1);
assert_eq!(RecorderState::Recording.value(), 3);Variants§
Uninitialized = 0
Uninitialized state
Initialized = 1
Initialized state, ready to start recording
Recording = 3
Recording state
Implementations§
Trait Implementations§
Source§impl Clone for RecorderState
impl Clone for RecorderState
Source§fn clone(&self) -> RecorderState
fn clone(&self) -> RecorderState
Returns a duplicate 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 RecorderState
impl Debug for RecorderState
Source§impl PartialEq for RecorderState
impl PartialEq for RecorderState
impl Copy for RecorderState
impl Eq for RecorderState
impl StructuralPartialEq for RecorderState
Auto Trait Implementations§
impl Freeze for RecorderState
impl RefUnwindSafe for RecorderState
impl Send for RecorderState
impl Sync for RecorderState
impl Unpin for RecorderState
impl UnwindSafe for RecorderState
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