pub struct ConnectOverCdpBuilder<'a> {
inner: Weak<BrowserType>,
args: ConnectOverCdpArgs<'a>,
}Fields§
§inner: Weak<BrowserType>§args: ConnectOverCdpArgs<'a>Implementations§
Source§impl<'a> ConnectOverCdpBuilder<'a>
impl<'a> ConnectOverCdpBuilder<'a>
pub async fn connect_over_cdp(self) -> Result<Browser, Arc<Error>>
fn new(inner: Weak<Impl>, endpoint_url: &'a str) -> Self
Sourcepub fn headers(self, x: HashMap<String, String>) -> Self
pub fn headers(self, x: HashMap<String, String>) -> Self
Additional HTTP headers to be sent with web socket connect request. Optional.
Sourcepub fn timeout(self, x: f64) -> Self
pub fn timeout(self, x: f64) -> Self
Maximum time in milliseconds to wait for the browser instance to start. Defaults to 30000 (30 seconds). Pass 0 to
disable timeout.
Sourcepub fn slowmo(self, x: f64) -> Self
pub fn slowmo(self, x: f64) -> Self
Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. Defaults to 0.
pub fn clear_headers(self) -> Self
pub fn clear_timeout(self) -> Self
pub fn clear_slowmo(self) -> Self
Auto Trait Implementations§
impl<'a> Freeze for ConnectOverCdpBuilder<'a>
impl<'a> RefUnwindSafe for ConnectOverCdpBuilder<'a>
impl<'a> Send for ConnectOverCdpBuilder<'a>
impl<'a> Sync for ConnectOverCdpBuilder<'a>
impl<'a> Unpin for ConnectOverCdpBuilder<'a>
impl<'a> UnwindSafe for ConnectOverCdpBuilder<'a>
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