cdp-driver 0.5.0

Chrome DevTools Protocol (CDP) client for Rust: every command, event and type generated from the schema, with sessions, for browser automation and AI agents
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! Defines events for background web platform features.
//!
//! Method names for the `BackgroundService` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// Enables event updates for the service.
///
/// Parameters:
/// - `service`: ServiceName
pub const START_OBSERVING: &str = "BackgroundService.startObserving";

/// Disables event updates for the service.
///
/// Parameters:
/// - `service`: ServiceName
pub const STOP_OBSERVING: &str = "BackgroundService.stopObserving";

/// Set the recording state for the service.
///
/// Parameters:
/// - `shouldRecord`: boolean
/// - `service`: ServiceName
pub const SET_RECORDING: &str = "BackgroundService.setRecording";

/// Clears all stored data for the service.
///
/// Parameters:
/// - `service`: ServiceName
pub const CLEAR_EVENTS: &str = "BackgroundService.clearEvents";