pub struct BrowserConfigBuilder { /* private fields */ }Expand description
Builder for BrowserConfig
Implementations§
Source§impl BrowserConfigBuilder
impl BrowserConfigBuilder
Sourcepub fn user_agent<S: Into<String>>(self, ua: S) -> Self
pub fn user_agent<S: Into<String>>(self, ua: S) -> Self
Set user agent
Sourcepub fn timeout_ms(self, ms: u64) -> Self
pub fn timeout_ms(self, ms: u64) -> Self
Set navigation timeout
Sourcepub fn chrome_path<S: Into<String>>(self, path: S) -> Self
pub fn chrome_path<S: Into<String>>(self, path: S) -> Self
Set Chrome path
Sourcepub fn build(self) -> BrowserConfig
pub fn build(self) -> BrowserConfig
Build the config
Trait Implementations§
Source§impl Default for BrowserConfigBuilder
impl Default for BrowserConfigBuilder
Source§fn default() -> BrowserConfigBuilder
fn default() -> BrowserConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BrowserConfigBuilder
impl RefUnwindSafe for BrowserConfigBuilder
impl Send for BrowserConfigBuilder
impl Sync for BrowserConfigBuilder
impl Unpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more