#[non_exhaustive]pub enum RecorderState {
Idle,
Recording,
Stopping,
Closed,
Indeterminate,
}Expand description
Where a recorder is in its session.
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.
Idle
No session has been started.
Recording
A session is recording, or waiting for its source.
Stopping
The session is stopping and its last file is not yet reported closed.
Closed
The session ended and every file it opened was reported closed.
Indeterminate
The session ended without RecordingReport::closure_confirmed.
Events were lost, unreadable or inconsistent, or the session ended
before reporting any file. Incomplete tracking requires
FileRecorder::reset before starting another session; see
StateConflict::IncompleteFileTracking.
Trait Implementations§
Source§impl Clone for RecorderState
impl Clone for RecorderState
impl Copy for RecorderState
Source§impl Debug for RecorderState
impl Debug for RecorderState
impl Eq for RecorderState
Source§impl Hash for RecorderState
impl Hash for RecorderState
Source§impl PartialEq for RecorderState
impl PartialEq 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 UnsafeUnpin 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