web_sys/features/
gen_NetworkCommandOptions.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NetworkCommandOptions)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `NetworkCommandOptions` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
12    pub type NetworkCommandOptions;
13    #[doc = "Get the `cmd` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
16    #[wasm_bindgen(method, getter = "cmd")]
17    pub fn get_cmd(this: &NetworkCommandOptions) -> Option<::alloc::string::String>;
18    #[doc = "Change the `cmd` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
21    #[wasm_bindgen(method, setter = "cmd")]
22    pub fn set_cmd(this: &NetworkCommandOptions, val: &str);
23    #[doc = "Get the `curExternalIfname` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
26    #[wasm_bindgen(method, getter = "curExternalIfname")]
27    pub fn get_cur_external_ifname(this: &NetworkCommandOptions)
28        -> Option<::alloc::string::String>;
29    #[doc = "Change the `curExternalIfname` field of this object."]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
32    #[wasm_bindgen(method, setter = "curExternalIfname")]
33    pub fn set_cur_external_ifname(this: &NetworkCommandOptions, val: &str);
34    #[doc = "Get the `curInternalIfname` field of this object."]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
37    #[wasm_bindgen(method, getter = "curInternalIfname")]
38    pub fn get_cur_internal_ifname(this: &NetworkCommandOptions)
39        -> Option<::alloc::string::String>;
40    #[doc = "Change the `curInternalIfname` field of this object."]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
43    #[wasm_bindgen(method, setter = "curInternalIfname")]
44    pub fn set_cur_internal_ifname(this: &NetworkCommandOptions, val: &str);
45    #[doc = "Get the `dns1` field of this object."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
48    #[wasm_bindgen(method, getter = "dns1")]
49    pub fn get_dns1(this: &NetworkCommandOptions) -> Option<::alloc::string::String>;
50    #[doc = "Change the `dns1` field of this object."]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
53    #[wasm_bindgen(method, setter = "dns1")]
54    pub fn set_dns1(this: &NetworkCommandOptions, val: &str);
55    #[doc = "Get the `dns1_long` field of this object."]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
58    #[wasm_bindgen(method, getter = "dns1_long")]
59    pub fn get_dns1_long(this: &NetworkCommandOptions) -> Option<i32>;
60    #[doc = "Change the `dns1_long` field of this object."]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
63    #[wasm_bindgen(method, setter = "dns1_long")]
64    pub fn set_dns1_long(this: &NetworkCommandOptions, val: i32);
65    #[doc = "Get the `dns2` field of this object."]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
68    #[wasm_bindgen(method, getter = "dns2")]
69    pub fn get_dns2(this: &NetworkCommandOptions) -> Option<::alloc::string::String>;
70    #[doc = "Change the `dns2` field of this object."]
71    #[doc = ""]
72    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
73    #[wasm_bindgen(method, setter = "dns2")]
74    pub fn set_dns2(this: &NetworkCommandOptions, val: &str);
75    #[doc = "Get the `dns2_long` field of this object."]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
78    #[wasm_bindgen(method, getter = "dns2_long")]
79    pub fn get_dns2_long(this: &NetworkCommandOptions) -> Option<i32>;
80    #[doc = "Change the `dns2_long` field of this object."]
81    #[doc = ""]
82    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
83    #[wasm_bindgen(method, setter = "dns2_long")]
84    pub fn set_dns2_long(this: &NetworkCommandOptions, val: i32);
85    #[doc = "Get the `dnses` field of this object."]
86    #[doc = ""]
87    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
88    #[wasm_bindgen(method, getter = "dnses")]
89    pub fn get_dnses(this: &NetworkCommandOptions) -> Option<::js_sys::Array>;
90    #[doc = "Change the `dnses` field of this object."]
91    #[doc = ""]
92    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
93    #[wasm_bindgen(method, setter = "dnses")]
94    pub fn set_dnses(this: &NetworkCommandOptions, val: &::wasm_bindgen::JsValue);
95    #[doc = "Get the `domain` field of this object."]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
98    #[wasm_bindgen(method, getter = "domain")]
99    pub fn get_domain(this: &NetworkCommandOptions) -> Option<::alloc::string::String>;
100    #[doc = "Change the `domain` field of this object."]
101    #[doc = ""]
102    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
103    #[wasm_bindgen(method, setter = "domain")]
104    pub fn set_domain(this: &NetworkCommandOptions, val: &str);
105    #[doc = "Get the `enable` field of this object."]
106    #[doc = ""]
107    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
108    #[wasm_bindgen(method, getter = "enable")]
109    pub fn get_enable(this: &NetworkCommandOptions) -> Option<bool>;
110    #[doc = "Change the `enable` field of this object."]
111    #[doc = ""]
112    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
113    #[wasm_bindgen(method, setter = "enable")]
114    pub fn set_enable(this: &NetworkCommandOptions, val: bool);
115    #[doc = "Get the `enabled` field of this object."]
116    #[doc = ""]
117    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
118    #[wasm_bindgen(method, getter = "enabled")]
119    pub fn get_enabled(this: &NetworkCommandOptions) -> Option<bool>;
120    #[doc = "Change the `enabled` field of this object."]
121    #[doc = ""]
122    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
123    #[wasm_bindgen(method, setter = "enabled")]
124    pub fn set_enabled(this: &NetworkCommandOptions, val: bool);
125    #[doc = "Get the `endIp` field of this object."]
126    #[doc = ""]
127    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
128    #[wasm_bindgen(method, getter = "endIp")]
129    pub fn get_end_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>;
130    #[doc = "Change the `endIp` field of this object."]
131    #[doc = ""]
132    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
133    #[wasm_bindgen(method, setter = "endIp")]
134    pub fn set_end_ip(this: &NetworkCommandOptions, val: &str);
135    #[doc = "Get the `externalIfname` field of this object."]
136    #[doc = ""]
137    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
138    #[wasm_bindgen(method, getter = "externalIfname")]
139    pub fn get_external_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>;
140    #[doc = "Change the `externalIfname` field of this object."]
141    #[doc = ""]
142    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
143    #[wasm_bindgen(method, setter = "externalIfname")]