browser_protocol/tethering/
mod.rs1use serde::{Serialize, Deserialize};
3use serde_json::Value as JsonValue;
4
5#[derive(Debug, Clone, Serialize, Deserialize, Default)]
8#[serde(rename_all = "camelCase")]
9pub struct BindParams {
10 pub port: i64,
13}
14
15impl BindParams { pub const METHOD: &'static str = "Tethering.bind"; }
16
17impl crate::CdpCommand for BindParams {
18 const METHOD: &'static str = "Tethering.bind";
19 type Response = crate::EmptyReturns;
20}
21
22#[derive(Debug, Clone, Serialize, Deserialize, Default)]
25#[serde(rename_all = "camelCase")]
26pub struct UnbindParams {
27 pub port: i64,
30}
31
32impl UnbindParams { pub const METHOD: &'static str = "Tethering.unbind"; }
33
34impl crate::CdpCommand for UnbindParams {
35 const METHOD: &'static str = "Tethering.unbind";
36 type Response = crate::EmptyReturns;
37}