#[non_exhaustive]pub enum Domain {
Browser,
Contacts,
Calendar,
Mail,
Accessibility,
ScreenCapture,
Automation,
Camera,
Microphone,
HealthRead,
}Expand description
Capability domains. A domain may be NotApplicable on some OSes — the
enum is the union across all supported platforms.
This enum is #[non_exhaustive] — new variants may be added in minor
versions. Downstream consumers MUST include a wildcard arm when
matching, typically handled as Domain::<unknown> → NotApplicable.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Browser
Browser automation (launching Chromium, controlling it). Meaningful
on every OS CAR supports — status reflects whether car browse can
find a Chrome binary it’s allowed to invoke.
Contacts
macOS TCC Contacts; Windows Contacts; Linux n/a (usually granted).
Calendar
macOS TCC Calendar; Windows Calendar; Linux n/a.
Mail — no OS-level permission domain; returns NotApplicable
everywhere. Kept so the domain list is stable across capabilities.
Accessibility
Accessibility features / input synthesis. macOS TCC Accessibility; Windows UIPI / SendInput (usually granted on interactive sessions); Linux X11/Wayland distinction — partially applicable.
ScreenCapture
Screen capture. macOS TCC Screen Recording; Windows/Linux typically granted.
Automation
Automation / app control. macOS Apple Events; Windows COM; Linux n/a.
Camera
Camera.
Microphone
Microphone.
HealthRead
Wearable / activity data read access. macOS TCC HealthKit types; Windows/Linux: per-vendor OAuth (Fitbit / Garmin / Oura / etc.).