pub struct AsyncConnection<T: EventMessage> {
pub reader: WsReader<T>,
pub cmd_tx: Sender<MethodCall>,
pub writer_handle: JoinHandle<Result<()>>,
pub next_id: usize,
}Expand description
Split parts returned by Connection::into_async.
Fields§
§reader: WsReader<T>WebSocket read stream — yields decoded CDP messages.
cmd_tx: Sender<MethodCall>Sender half for submitting outgoing CDP commands.
writer_handle: JoinHandle<Result<()>>Handle to the background writer task.
next_id: usizeNext command-call-id counter (continue numbering from where Connection left off).
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for AsyncConnection<T>
impl<T> !RefUnwindSafe for AsyncConnection<T>
impl<T> Send for AsyncConnection<T>where
T: Send,
impl<T> Sync for AsyncConnection<T>where
T: Sync,
impl<T> Unpin for AsyncConnection<T>where
T: Unpin,
impl<T> UnsafeUnpin for AsyncConnection<T>
impl<T> !UnwindSafe for AsyncConnection<T>
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