pub struct RecorderLifecycle { /* private fields */ }Implementations§
Source§impl RecorderLifecycle
impl RecorderLifecycle
pub fn status(&self) -> &RecorderStatus
pub fn start(&mut self) -> Result<RecordingId, RecorderCommandError>
pub fn started(&mut self, recording_id: RecordingId) -> bool
pub fn stop(&mut self) -> Result<(), RecorderCommandError>
Sourcepub fn source_ended(&mut self) -> bool
pub fn source_ended(&mut self) -> bool
Accept external Recording Source completion as the terminal intent.
pub fn completion_cause( &self, recording_id: RecordingId, ) -> Option<RecordingCompletionCause>
pub fn pause(&mut self) -> Result<(), RecorderCommandError>
pub fn resume(&mut self) -> Result<(), RecorderCommandError>
pub fn request_chunk_boundary(&self) -> Result<(), RecorderCommandError>
Sourcepub fn next_chunk_sequence(&mut self, recording_id: RecordingId) -> Option<u64>
pub fn next_chunk_sequence(&mut self, recording_id: RecordingId) -> Option<u64>
Reserve the next contiguous sequence for a non-empty Recording Chunk.
pub fn cancel(&mut self) -> Result<(), RecorderCommandError>
pub fn begin_finalize( &mut self, recording_id: RecordingId, ) -> Option<CompletionDisposition>
pub fn complete_finalize(&mut self, recording_id: RecordingId) -> bool
pub fn clear_completed(&mut self)
pub fn failed(&mut self, recording_id: RecordingId, error: AudioError) -> bool
pub fn configuration_failed(&mut self, error: AudioError) -> bool
Trait Implementations§
Source§impl Debug for RecorderLifecycle
impl Debug for RecorderLifecycle
Auto Trait Implementations§
impl Freeze for RecorderLifecycle
impl RefUnwindSafe for RecorderLifecycle
impl Send for RecorderLifecycle
impl Sync for RecorderLifecycle
impl Unpin for RecorderLifecycle
impl UnsafeUnpin for RecorderLifecycle
impl UnwindSafe for RecorderLifecycle
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
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.