chrome_devtools/domain/mod.rs
1pub mod runtime;
2pub use runtime::Runtime;
3
4use serde::{Deserialize, Serialize};
5
6/// `Domain` is an enum that should contain all of the different domains defined by the devtools
7/// protocol. Currently only the `Runtime` domain is implemented, but this will hopefully change
8/// as the library evolves.
9///
10/// It's important to note that this enum is tagged as `#[non_exhaustive]` because the plan is to
11/// add more domains. This means that matching on a `Domain` will require handling a default `_`
12/// case for the sake of future compatibility.
13#[derive(Debug, Serialize, Deserialize)]
14#[serde(untagged)]
15#[non_exhaustive]
16pub enum Domain {
17 Runtime(Runtime),
18}