Enum
SandboxMode
#[non_exhaustive]
pub enum SandboxMode {
Disabled,
Chromium,
}Chromium process sandbox policy.
Selected with App::sandbox_mode.
Variants
#Disabled
Run Chromium without its helper-process sandbox.
CEF is initialized with no_sandbox=1 and the platform’s
sandbox-disabling switches are set.
#Chromium
Run renderer, GPU and utility processes inside Chromium’s sandbox.
Startup fails unless the platform can enforce it:
- Linux: unprivileged user namespaces, or a root-owned setuid
chrome-sandboxhelper. - macOS: the app runs from a
.appbundle, where each helper can enter its seatbelt sandbox before CEF initializes. - Windows: the app is loaded by CEF’s bootstrap executable, which
brokers the sandbox. See
sandbox_entry!.
Trait implementations
impl Clone for SandboxModeimpl Copy for SandboxModeimpl Debug for SandboxModeimpl Default for SandboxModeimpl Eq for SandboxModeimpl PartialEq for SandboxMode