Expand description
Persistent recorder preferences (M-SAVE.0) — JSON at
<app-config-dir>/recorder-settings.json.
output_dir— the directory new recordings export into.None→ the per-OS default (recording_paths::default_output_dir).last_format— the export format slug last chosen in the Save panel ("mp4-h264"/"webm-vp9").None→ the default format.
Both fields are #[serde(default)] + Option, so partial / older
files still load (missing keys → None).
Structs§
- Recorder
Settings - Cross-session recorder preferences. See module docs for the per-field semantics.
Constants§
- SETTINGS_
FILE 🔒 - File name under the app-config dir. See module docs.
Functions§
- load
- Load the persisted settings for this app handle. Defaults on any
failure (see
load_from). - load_
from - Parse settings from the JSON at
path, falling back toRecorderSettings::defaulton any failure (missing / unreadable / malformed) — a corrupt file degrades to defaults, never blocks. - resolved_
output_ dir - The directory new recordings should export into: the persisted override if set, otherwise the per-OS default. This is the single resolver every output-path computation should call so the chosen directory is honored everywhere.
- save
- Persist
settingsfor this app handle. - save_to
- Serialize
settingsto the JSON atpath, creating the parent directory if needed. - settings_
path 🔒 - Resolve the settings-file path under Tauri’s app-config dir.
Noneif the platform path resolver fails (extremely rare — missing$HOMEwith no fallback).