pub struct NetworkRecorder { /* private fields */ }Expand description
Scoped lease for network recording.
Created by BrowserSession::start_network_recording. While this
guard is alive, Network.requestWillBeSent, Network.responseReceived,
and Network.loadingFailed events are collected into an internal buffer
(capped at 128 entries).
Call drain periodically to process events, then
stop to finalize and retrieve the recording.
On drop, Network.disable is sent for best-effort cleanup.
Implementations§
Source§impl NetworkRecorder
impl NetworkRecorder
Sourcepub async fn stop(self) -> BrowserResult<NetworkRecording>
pub async fn stop(self) -> BrowserResult<NetworkRecording>
Stop recording, disable the Network domain, and return captured entries.
Trait Implementations§
Source§impl Drop for NetworkRecorder
impl Drop for NetworkRecorder
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkRecorder
impl !UnwindSafe for NetworkRecorder
impl Freeze for NetworkRecorder
impl Send for NetworkRecorder
impl Sync for NetworkRecorder
impl Unpin for NetworkRecorder
impl UnsafeUnpin for NetworkRecorder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more