pub struct CreateBrowserContextBuilder { /* private fields */ }Expand description
Builder for CreateBrowserContext.
Implementations§
Source§impl CreateBrowserContextBuilder
impl CreateBrowserContextBuilder
Sourcepub fn dispose_on_detach<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn dispose_on_detach<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
If specified, disposes this context when debugging session disconnects.
Sourcepub fn proxy_server<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn proxy_server<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Proxy server, similar to the one passed to –proxy-server
Sourcepub fn proxy_bypass_list<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn proxy_bypass_list<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Proxy bypass list, similar to the one passed to –proxy-bypass-list
Sourcepub fn origins_with_universal_network_access<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn origins_with_universal_network_access<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
An optional list of origins to grant unlimited cross-origin access to. Parts of the URL other than those constituting origin are ignored.
Sourcepub fn build(
&self,
) -> Result<CreateBrowserContext, CreateBrowserContextBuilderError>
pub fn build( &self, ) -> Result<CreateBrowserContext, CreateBrowserContextBuilderError>
Trait Implementations§
Source§impl Clone for CreateBrowserContextBuilder
impl Clone for CreateBrowserContextBuilder
Source§fn clone(&self) -> CreateBrowserContextBuilder
fn clone(&self) -> CreateBrowserContextBuilder
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 moreAuto Trait Implementations§
impl Freeze for CreateBrowserContextBuilder
impl RefUnwindSafe for CreateBrowserContextBuilder
impl Send for CreateBrowserContextBuilder
impl Sync for CreateBrowserContextBuilder
impl Unpin for CreateBrowserContextBuilder
impl UnsafeUnpin for CreateBrowserContextBuilder
impl UnwindSafe for CreateBrowserContextBuilder
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