pub struct FrameResponseCapture { /* private fields */ }Expand description
Owns a dedicated CDP session and capture worker. Drop requests cleanup; use stop to await cleanup. Retained evidence survives removal of the frame.
Implementations§
Source§impl FrameResponseCapture
impl FrameResponseCapture
Sourcepub fn snapshot(&self) -> FrameResponseCaptureReport
pub fn snapshot(&self) -> FrameResponseCaptureReport
Clone currently retained evidence without stopping the worker.
Sourcepub async fn stop(self) -> FrameResponseCaptureReport
pub async fn stop(self) -> FrameResponseCaptureReport
Cancel pending capture, detach its session, and return retained evidence. Call after the application received its response to avoid interrupting capture.
Trait Implementations§
Source§impl Drop for FrameResponseCapture
impl Drop for FrameResponseCapture
Auto Trait Implementations§
impl !RefUnwindSafe for FrameResponseCapture
impl !UnwindSafe for FrameResponseCapture
impl Freeze for FrameResponseCapture
impl Send for FrameResponseCapture
impl Sync for FrameResponseCapture
impl Unpin for FrameResponseCapture
impl UnsafeUnpin for FrameResponseCapture
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