pub fn run(store: &Store, opts: &RunOptions) -> Result<RunOutcome>Expand description
Run one recording session (FR-1.1, FR-1.3). Creates the session row, spawns the PTY + watcher, drives capture, and finalizes. Returns the outcome for the epilogue (FR-1.6).
§Errors
Returns crate::RecordError for setup failures (PTY spawn, watcher
init, store errors). A child that exits nonzero is not an error here —
it’s reflected in RunOutcome.status/exit_code.