#[non_exhaustive]pub enum FinishStatus {
Ended(SessionEnd),
TimedOut(RecordingReport),
}Expand description
The outcome of finishing a recording session.
FileRecorder::finish and AsyncFileRecorder::finish
retain a report even when their completion budget expires. The corresponding
wait_for_finish methods return None on timeout and Some for a closed or
indeterminate session.
A synchronous recorder stays usable whatever the outcome, but incomplete
file tracking requires FileRecorder::reset before another session can
start. An async recorder can be closed by another clone while the operation
is running.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ended(SessionEnd)
The session ended within the completion budget.
TimedOut(RecordingReport)
finish’s completion budget expired before the session ended.
Call FileRecorder::wait_for_finish to keep waiting, or inspect the
recorder’s current report.
An async operation interrupted by a close reports StateConflict::Closed
instead when closure cannot be established in its remaining budget.