pub struct SessionBuilder { /* private fields */ }Implementations§
Source§impl SessionBuilder
impl SessionBuilder
pub fn bearer_auth(self, token: &str) -> Self
Source§impl SessionBuilder
impl SessionBuilder
pub fn proxy(self, config: impl Into<ProxyConfig>) -> Self
pub fn timeout(self, config: impl Into<TimeoutConfig>) -> Self
pub fn retry(self, policy: RetryPolicy) -> Self
pub fn pool(self, config: PoolConfig) -> Self
pub fn browser(self, browser: Browser) -> Self
pub fn profile(self, profile: BrowserProfile) -> Self
pub fn brand(self, brand: ChromiumBrand) -> Self
pub fn platform(self, platform: Platform) -> Self
pub fn redirect(self, policy: RedirectPolicy) -> Self
pub fn tcp_profile(self, profile: TcpProfile) -> Self
pub fn dns(self, config: impl Into<DnsConfig>) -> Self
pub fn tls_trust(self, trust: TlsTrustConfig) -> Self
pub fn socket(self, config: SocketConfig) -> Self
pub fn compression(self, config: CompressionConfig) -> Self
pub fn expect_profile_id(self, id: &str) -> Self
pub fn websocket_config(self, config: WebSocketConfig) -> Self
pub fn https_only(self, enabled: bool) -> Self
pub fn trace(self, hook: impl Trace) -> Self
pub fn audit(self, enabled: bool) -> Self
pub fn protocol(self, policy: ProtocolPolicy) -> Self
pub fn identity(self, id: Identity) -> Self
pub fn user_agent(self, value: &str) -> Self
pub fn languages<I, S>(self, langs: I) -> Self
pub fn host_limits(self, limits: HostLimits) -> Self
pub fn proxy_pool(self, pool: ProxyPool) -> Self
pub fn base_url(self, url: impl IntoUrl) -> Self
pub fn headers<I, P>(self, headers: I) -> Selfwhere
I: IntoIterator<Item = P>,
P: IntoParamPair,
pub fn build(self) -> Result<Session>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SessionBuilder
impl !UnwindSafe for SessionBuilder
impl Freeze for SessionBuilder
impl Send for SessionBuilder
impl Sync for SessionBuilder
impl Unpin for SessionBuilder
impl UnsafeUnpin for SessionBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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