Skip to main content

cdp_driver/protocol/
mod.rs

1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! Typed CDP: the protocol's own types, one parameters and one result
5//! struct per command, and one payload struct per event.
6//!
7//! Send a command with [`CdpClient::send`](crate::CdpClient::send), which
8//! reads the method name and the result type off the parameters it is
9//! handed, so the two cannot be mismatched. Decode an event with
10//! [`typed::decode`](crate::typed::decode) or
11//! [`SessionEvent::decode`](crate::SessionEvent::decode).
12//!
13//! ```no_run
14//! # use cdp_driver::CdpClient;
15//! use cdp_driver::protocol::target;
16//!
17//! # async fn run(client: &CdpClient) -> cdp_driver::Result<()> {
18//! let created = client
19//!     .send(target::CreateTargetParams {
20//!         url: "about:blank".to_string(),
21//!         ..Default::default()
22//!     })
23//!     .await?;
24//! println!("{}", created.target_id);
25//! # Ok(())
26//! # }
27//! ```
28
29// Schema prose is reflowed to fit a doc comment, so a line that happens to
30// begin with a dash is not the list item this lint takes it for.
31#![allow(clippy::doc_lazy_continuation)]
32
33pub mod accessibility;
34pub mod ads;
35pub mod animation;
36pub mod audits;
37pub mod autofill;
38pub mod background_service;
39pub mod bluetooth_emulation;
40pub mod browser;
41pub mod cache_storage;
42pub mod cast;
43pub mod console;
44pub mod crash_report_context;
45pub mod css;
46pub mod debugger;
47pub mod device_access;
48pub mod device_orientation;
49pub mod digital_credentials;
50pub mod dom;
51pub mod dom_debugger;
52pub mod dom_snapshot;
53pub mod dom_storage;
54pub mod emulation;
55pub mod event_breakpoints;
56pub mod extensions;
57pub mod fed_cm;
58pub mod fetch;
59pub mod file_system;
60pub mod find_in_page;
61pub mod headless_experimental;
62pub mod heap_profiler;
63pub mod indexed_db;
64pub mod input;
65pub mod inspector;
66pub mod io;
67pub mod layer_tree;
68pub mod log;
69pub mod media;
70pub mod memory;
71pub mod network;
72pub mod overlay;
73pub mod page;
74pub mod performance;
75pub mod performance_timeline;
76pub mod preload;
77pub mod profiler;
78pub mod pwa;
79pub mod runtime;
80pub mod schema;
81pub mod security;
82pub mod service_worker;
83pub mod smart_card_emulation;
84pub mod storage;
85pub mod system_info;
86pub mod target;
87pub mod tethering;
88pub mod tracing;
89pub mod web_audio;
90pub mod web_authn;
91pub mod web_mcp;