pub struct Connection { /* private fields */ }Expand description
CDP WebSocket connection dispatching commands via oneshot channels.
Implementations§
Source§impl Connection
impl Connection
Sourcepub async fn new(
ws_stream: WebSocketStream<MaybeTlsStream<TcpStream>>,
kill_rx: Receiver<()>,
) -> Result<Self>
pub async fn new( ws_stream: WebSocketStream<MaybeTlsStream<TcpStream>>, kill_rx: Receiver<()>, ) -> Result<Self>
Create a new CDP connection. Spawns a background reader for response dispatch.
Auto Trait Implementations§
impl !Freeze for Connection
impl !RefUnwindSafe for Connection
impl !UnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
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