pub struct CdpClientBuilder { /* private fields */ }Expand description
CDP 客户端构建器
Implementations§
Source§impl CdpClientBuilder
impl CdpClientBuilder
Sourcepub fn with_endpoint(self, endpoint: impl Into<String>) -> Self
pub fn with_endpoint(self, endpoint: impl Into<String>) -> Self
设置 CDP 服务端点
支持 HTTP(http://host:port)或 WebSocket(ws://host:port)格式。
HTTP 端点会自动从 /json/version 获取 WebSocket URL。
设置导航超时(默认 30 秒)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CdpClientBuilder
impl RefUnwindSafe for CdpClientBuilder
impl Send for CdpClientBuilder
impl Sync for CdpClientBuilder
impl Unpin for CdpClientBuilder
impl UnsafeUnpin for CdpClientBuilder
impl UnwindSafe for CdpClientBuilder
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