pub struct LaunchOptions {
pub executable_path: Option<PathBuf>,
pub user_data_dir: Option<PathBuf>,
pub transport_mode: TransportMode,
pub headless: bool,
pub args: Vec<OsString>,
pub startup_timeout: Duration,
}Expand description
Options that control how Chrome is launched.
Fields§
§executable_path: Option<PathBuf>Optional Chrome executable path. If omitted, chrome-locations is used.
user_data_dir: Option<PathBuf>Optional user data directory. If omitted, a temporary one is created.
transport_mode: TransportModeLaunch transport to use.
headless: boolLaunch Chrome headless when set.
args: Vec<OsString>Additional Chrome command-line arguments.
startup_timeout: DurationHow long to wait for Chrome to become ready.
Trait Implementations§
Source§impl Clone for LaunchOptions
impl Clone for LaunchOptions
Source§fn clone(&self) -> LaunchOptions
fn clone(&self) -> LaunchOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 LaunchOptions
impl Debug for LaunchOptions
Source§impl Default for LaunchOptions
impl Default for LaunchOptions
Source§fn default() -> LaunchOptions
fn default() -> LaunchOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for LaunchOptions
impl PartialEq for LaunchOptions
impl Eq for LaunchOptions
impl StructuralPartialEq for LaunchOptions
Auto Trait Implementations§
impl Freeze for LaunchOptions
impl RefUnwindSafe for LaunchOptions
impl Send for LaunchOptions
impl Sync for LaunchOptions
impl Unpin for LaunchOptions
impl UnsafeUnpin for LaunchOptions
impl UnwindSafe for LaunchOptions
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