rustenium_cdp_definitions/browser_protocol/tethering/
events.rs1use serde::{Deserialize, Serialize};
2#[doc = "Informs that port was successfully bound and got a specified connection id.\n[accepted](https://chromedevtools.github.io/devtools-protocol/tot/Tethering/#event-accepted)"]
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct AcceptedParams {
5 #[doc = "Port number that was successfully bound."]
6 #[serde(rename = "port")]
7 pub port: i64,
8 #[doc = "Connection id to be used."]
9 #[serde(rename = "connectionId")]
10 pub connection_id: String,
11}
12#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
13pub enum AcceptedMethod {
14 #[serde(rename = "Tethering.accepted")]
15 Accepted,
16}
17#[doc = "Informs that port was successfully bound and got a specified connection id.\n[accepted](https://chromedevtools.github.io/devtools-protocol/tot/Tethering/#event-accepted)"]
18#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
19pub struct Accepted {
20 pub method: AcceptedMethod,
21 pub params: AcceptedParams,
22}
23impl Accepted {
24 pub const IDENTIFIER: &'static str = "Tethering.accepted";
25 pub fn identifier(&self) -> &'static str {
26 Self::IDENTIFIER
27 }
28}
29group_enum ! (TetheringEvents { Accepted (Accepted) } + identifiable);