1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.
//! The `Inspector` domain.
//!
//! Types, command parameters and event payloads for the `Inspector`
//! domain. The method-name constants for the same domain are in
//! [`crate::methods`].
//!
//! This domain is experimental and may change without notice.
use serde::{Deserialize, Serialize};
/// Disables inspector domain notifications.
///
/// Parameters of `Inspector.disable`.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct DisableParams {}
impl crate::typed::Command for DisableParams {
const METHOD: &'static str = "Inspector.disable";
type Returns = crate::typed::NoReturns;
}
/// Enables inspector domain notifications.
///
/// Parameters of `Inspector.enable`.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct EnableParams {}
impl crate::typed::Command for EnableParams {
const METHOD: &'static str = "Inspector.enable";
type Returns = crate::typed::NoReturns;
}
/// Fired when remote debugging connection is about to be terminated. Contains
/// detach reason.
///
/// Payload of the `Inspector.detached` event.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct DetachedEvent {
/// The reason why connection has been terminated.
pub reason: String,
}
impl crate::typed::Event for DetachedEvent {
const METHOD: &'static str = "Inspector.detached";
}
/// Fired when debugging target has crashed
///
/// Payload of the `Inspector.targetCrashed` event.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct TargetCrashedEvent {}
impl crate::typed::Event for TargetCrashedEvent {
const METHOD: &'static str = "Inspector.targetCrashed";
}
/// Fired when debugging target has reloaded after crash
///
/// Payload of the `Inspector.targetReloadedAfterCrash` event.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct TargetReloadedAfterCrashEvent {}
impl crate::typed::Event for TargetReloadedAfterCrashEvent {
const METHOD: &'static str = "Inspector.targetReloadedAfterCrash";
}
/// Fired on worker targets when main worker script and any imported scripts
/// have been evaluated.
///
/// Experimental: may change without notice.
///
/// Payload of the `Inspector.workerScriptLoaded` event.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct WorkerScriptLoadedEvent {}
impl crate::typed::Event for WorkerScriptLoadedEvent {
const METHOD: &'static str = "Inspector.workerScriptLoaded";
}