pub struct BrowserConfigBuilder { /* private fields */ }Implementations§
Source§impl BrowserConfigBuilder
impl BrowserConfigBuilder
pub fn mode(self, mode: LaunchMode) -> Self
pub fn host(self, host: impl Into<String>) -> Self
pub fn port(self, port: u16) -> Self
pub fn headless(self, v: bool) -> Self
pub fn enable_automation(self, v: bool) -> Self
pub fn profile(self, mode: ProfileMode) -> Self
pub fn proxy(self, url: impl Into<String>) -> Self
pub fn chrome_path(self, p: impl Into<PathBuf>) -> Self
pub fn arg(self, a: impl Into<String>) -> Self
pub fn args<I, S>(self, args: I) -> Self
pub fn window_size(self, w: u32, h: u32) -> Self
pub fn user_agent(self, ua: impl Into<String>) -> Self
pub fn connect_timeout(self, d: Duration) -> Self
pub fn startup_timeout(self, d: Duration) -> Self
pub fn command_timeout(self, d: Duration) -> Self
pub fn keep_alive_on_drop(self, v: bool) -> Self
pub fn auto_relaunch(self, v: bool) -> Self
pub fn no_sandbox(self, v: bool) -> Self
pub fn build(self) -> BrowserConfig
Trait Implementations§
Source§impl Clone for BrowserConfigBuilder
impl Clone for BrowserConfigBuilder
Source§fn clone(&self) -> BrowserConfigBuilder
fn clone(&self) -> BrowserConfigBuilder
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 BrowserConfigBuilder
impl Debug for BrowserConfigBuilder
Auto Trait Implementations§
impl Freeze for BrowserConfigBuilder
impl RefUnwindSafe for BrowserConfigBuilder
impl Send for BrowserConfigBuilder
impl Sync for BrowserConfigBuilder
impl Unpin for BrowserConfigBuilder
impl UnsafeUnpin for BrowserConfigBuilder
impl UnwindSafe for BrowserConfigBuilder
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