#[non_exhaustive]pub struct LaunchContext {
pub proxy: Option<ProxyInfo>,
pub extra_args: Vec<String>,
}Expand description
Process-level context applied when launching a browser.
§Provider contract
Providers must apply both fields at launch: Self::proxy is the process-level browser
proxy because browser proxies are per-process rather than per-page, and Self::extra_args
must be appended to the browser command line. Together with the default lifecycle hooks, this
implements ROADMAP Phase 6’s pre_launch proxy and launch-argument behavior.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.proxy: Option<ProxyInfo>Resolved process-level browser proxy.
extra_args: Vec<String>Additional arguments appended to the browser command line.
Implementations§
Source§impl LaunchContext
impl LaunchContext
Sourcepub fn new() -> LaunchContext
pub fn new() -> LaunchContext
Creates an empty launch context.
Sourcepub fn proxy(self, proxy: ProxyInfo) -> LaunchContext
pub fn proxy(self, proxy: ProxyInfo) -> LaunchContext
Sets the process-level browser proxy.
Sourcepub fn extra_args(self, extra_args: Vec<String>) -> LaunchContext
pub fn extra_args(self, extra_args: Vec<String>) -> LaunchContext
Replaces the additional browser command-line arguments.
Trait Implementations§
Source§impl Clone for LaunchContext
impl Clone for LaunchContext
Source§fn clone(&self) -> LaunchContext
fn clone(&self) -> LaunchContext
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 LaunchContext
impl Debug for LaunchContext
Source§impl Default for LaunchContext
impl Default for LaunchContext
Source§fn default() -> LaunchContext
fn default() -> LaunchContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LaunchContext
impl RefUnwindSafe for LaunchContext
impl Send for LaunchContext
impl Sync for LaunchContext
impl Unpin for LaunchContext
impl UnsafeUnpin for LaunchContext
impl UnwindSafe for LaunchContext
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