pub struct LaunchPlan {Show 22 fields
pub backend: BackendKind,
pub kind: BrowserKind,
pub headless: bool,
pub executable_path: Option<String>,
pub args: Vec<String>,
pub channel: Option<String>,
pub env: Option<FxHashMap<String, String>>,
pub user_data_dir: Option<String>,
pub ws_endpoint: Option<String>,
pub auto_connect: Option<AutoConnectOptions>,
pub default_viewport: Option<ViewportConfig>,
pub slow_mo: Option<u64>,
pub timeout: Option<u64>,
pub downloads_path: Option<PathBuf>,
pub ignore_default_args: Option<IgnoreDefaultArgs>,
pub handle_sighup: Option<bool>,
pub handle_sigint: Option<bool>,
pub handle_sigterm: Option<bool>,
pub chromium_sandbox: Option<bool>,
pub firefox_user_prefs: Option<FxHashMap<String, Value>>,
pub proxy: Option<ProxyConfig>,
pub traces_dir: Option<PathBuf>,
}Expand description
Internal launch plan. Carries fields that are NOT exposed on the
public LaunchOptions (which mirrors verbatim) but
that the runtime needs in order to launch / connect to the right
backend. Constructed by BrowserType from the public options bag
and the per-instance kind/transport, then handed to
crate::state::BrowserState::with_plan.
Fields§
§backend: BackendKind§kind: BrowserKind§headless: bool§executable_path: Option<String>§args: Vec<String>§channel: Option<String>§env: Option<FxHashMap<String, String>>§user_data_dir: Option<String>§ws_endpoint: Option<String>§auto_connect: Option<AutoConnectOptions>§default_viewport: Option<ViewportConfig>§slow_mo: Option<u64>§timeout: Option<u64>§downloads_path: Option<PathBuf>§ignore_default_args: Option<IgnoreDefaultArgs>§handle_sighup: Option<bool>§handle_sigint: Option<bool>§handle_sigterm: Option<bool>§chromium_sandbox: Option<bool>§firefox_user_prefs: Option<FxHashMap<String, Value>>§proxy: Option<ProxyConfig>§traces_dir: Option<PathBuf>Implementations§
Source§impl LaunchPlan
impl LaunchPlan
Sourcepub fn from_public(
kind: BrowserKind,
transport: Option<ChromiumTransport>,
opts: LaunchOptions,
) -> Self
pub fn from_public( kind: BrowserKind, transport: Option<ChromiumTransport>, opts: LaunchOptions, ) -> Self
Build a launch plan from the public LaunchOptions plus the
per-BrowserType selection (kind + optional Chromium transport
override).
Trait Implementations§
Source§impl Clone for LaunchPlan
impl Clone for LaunchPlan
Source§fn clone(&self) -> LaunchPlan
fn clone(&self) -> LaunchPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaunchPlan
impl Debug for LaunchPlan
Auto Trait Implementations§
impl Freeze for LaunchPlan
impl RefUnwindSafe for LaunchPlan
impl Send for LaunchPlan
impl Sync for LaunchPlan
impl Unpin for LaunchPlan
impl UnsafeUnpin for LaunchPlan
impl UnwindSafe for LaunchPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more