pub struct ChromiumProcessOptions {
pub runtime: RuntimeSelection,
pub executable_path: PathBuf,
pub user_data_dir: Option<String>,
pub enable_logging: Option<String>,
pub log_file: Option<String>,
pub v: Option<i32>,
pub vmodule: Option<String>,
pub unsafe_enable_startup_default_window: bool,
pub extra_args: Vec<String>,
}Expand description
Options for launching the Chromium process.
Fields§
§runtime: RuntimeSelectionRuntime path to use for startup.
The default is chrome. alloy is currently reserved and will be
rejected by start_chromium until that runtime exists.
executable_path: PathBufPath to the browser executable (e.g. “Chromium.app/Contents/MacOS/Chromium”).
user_data_dir: Option<String>Path to the user data directory.
If provided, passed as --user-data-dir=<path>.
Prefer setting this explicitly unless you have a strong reason not to.
If None, Chromium may use a default profile location, which can conflict
with normal Chromium usage and risk profile data issues (for example,
profile/schema version mismatch).
enable_logging: Option<String>Whether to enable logging.
If provided, passed as --enable-logging=<stream>.
e.g. “–enable-logging=stderr”
log_file: Option<String>Path to the log file.
If provided, passed as --log-file=<path>.
v: Option<i32>Chromium VLOG verbosity.
If provided, passed as --v=<level>.
vmodule: Option<String>Per-module VLOG verbosity.
If provided, passed as --vmodule=<pattern1=N,...>.
unsafe_enable_startup_default_window: boolAllow Chromium to create its default startup window.
By default, CBF passes --no-startup-window to prevent Chromium’s
built-in initial window from being created unexpectedly.
This option is intentionally marked unsafe because enabling it can interfere with CBF-controlled window lifecycle behavior.
extra_args: Vec<String>Additional arguments to pass to the browser process.
Trait Implementations§
Source§impl Clone for ChromiumProcessOptions
impl Clone for ChromiumProcessOptions
Source§fn clone(&self) -> ChromiumProcessOptions
fn clone(&self) -> ChromiumProcessOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more