[−][src]Struct headless_chrome::LaunchOptionsBuilder
Builder for LaunchOptions
.
Methods
impl<'a> LaunchOptionsBuilder<'a>
[src]
pub fn headless(&mut self, value: bool) -> &mut Self
[src]
Determintes whether to run headless version of the browser. Defaults to true.
pub fn sandbox(&mut self, value: bool) -> &mut Self
[src]
Determines whether to run the browser with a sandbox.
pub fn window_size(&mut self, value: Option<(u32, u32)>) -> &mut Self
[src]
Launch the browser with a specific window width and height.
pub fn port(&mut self, value: Option<u16>) -> &mut Self
[src]
Launch the browser with a specific debugging port.
pub fn path(&mut self, value: Option<PathBuf>) -> &mut Self
[src]
Path for Chrome or Chromium.
If unspecified, the create will try to automatically detect a suitable binary.
pub fn extensions(&mut self, value: Vec<&'a OsStr>) -> &mut Self
[src]
A list of Chrome extensions to load.
An extension should be a path to a folder containing the extension code. CRX files cannot be used directly and must be first extracted.
Note that Chrome does not support loading extensions in headless-mode. See https://bugs.chromium.org/p/chromium/issues/detail?id=706008#c5
pub fn idle_browser_timeout(&mut self, value: Duration) -> &mut Self
[src]
How long to keep the WebSocket to the browser for after not receiving any events from it Defaults to 30 seconds
pub fn process_envs(
&mut self,
value: Option<HashMap<String, String>>
) -> &mut Self
[src]
&mut self,
value: Option<HashMap<String, String>>
) -> &mut Self
Environment variables to set for the Chromium process. Passes value through to std::process::Command::envs.
pub fn build(&self) -> Result<LaunchOptions<'a>, String>
[src]
Trait Implementations
impl<'a> Default for LaunchOptionsBuilder<'a>
[src]
fn default() -> LaunchOptionsBuilder<'a>
[src]
impl<'a> Clone for LaunchOptionsBuilder<'a>
[src]
fn clone(&self) -> LaunchOptionsBuilder<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> Unpin for LaunchOptionsBuilder<'a>
impl<'a> Send for LaunchOptionsBuilder<'a>
impl<'a> Sync for LaunchOptionsBuilder<'a>
impl<'a> UnwindSafe for LaunchOptionsBuilder<'a>
impl<'a> RefUnwindSafe for LaunchOptionsBuilder<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Typeable for T where
T: Any,
T: Any,