MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / drain_console_events

Method drain_console_events

src/cdp.rs:405–407  ·  view source on GitHub ↗

Drain accumulated console events from the persistent session.

(&mut self)

Source from the content-addressed store, hash-verified

403
404 /// Drain accumulated console events from the persistent session.
405 pub fn drain_console_events(&mut self) -> Vec<Value> {
406 std::mem::take(&mut self.console_events).into()
407 }
408
409 pub(crate) fn push_event(&mut self, event: Value) {
410 // Only route events into the persistent buffers when the event's

Callers 1

collect_consoleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected