web_sys/features/
gen_PerformanceResourceTiming.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "PerformanceEntry",
9 extends = "::js_sys::Object",
10 js_name = "PerformanceResourceTiming",
11 typescript_type = "PerformanceResourceTiming"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `PerformanceResourceTiming` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
19 pub type PerformanceResourceTiming;
20 #[wasm_bindgen(
21 method,
22 getter,
23 js_class = "PerformanceResourceTiming",
24 js_name = "initiatorType"
25 )]
26 #[doc = "Getter for the `initiatorType` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/initiatorType)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
31 pub fn initiator_type(this: &PerformanceResourceTiming) -> ::alloc::string::String;
32 #[wasm_bindgen(
33 method,
34 getter,
35 js_class = "PerformanceResourceTiming",
36 js_name = "nextHopProtocol"
37 )]
38 #[doc = "Getter for the `nextHopProtocol` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
43 pub fn next_hop_protocol(this: &PerformanceResourceTiming) -> ::alloc::string::String;
44 #[wasm_bindgen(
45 method,
46 getter,
47 js_class = "PerformanceResourceTiming",
48 js_name = "workerStart"
49 )]
50 #[doc = "Getter for the `workerStart` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/workerStart)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
55 pub fn worker_start(this: &PerformanceResourceTiming) -> f64;
56 #[wasm_bindgen(
57 method,
58 getter,
59 js_class = "PerformanceResourceTiming",
60 js_name = "redirectStart"
61 )]
62 #[doc = "Getter for the `redirectStart` field of this object."]
63 #[doc = ""]
64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/redirectStart)"]
65 #[doc = ""]
66 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
67 pub fn redirect_start(this: &PerformanceResourceTiming) -> f64;
68 #[wasm_bindgen(
69 method,
70 getter,
71 js_class = "PerformanceResourceTiming",
72 js_name = "redirectEnd"
73 )]
74 #[doc = "Getter for the `redirectEnd` field of this object."]
75 #[doc = ""]
76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/redirectEnd)"]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
79 pub fn redirect_end(this: &PerformanceResourceTiming) -> f64;
80 #[wasm_bindgen(
81 method,
82 getter,
83 js_class = "PerformanceResourceTiming",
84 js_name = "fetchStart"
85 )]
86 #[doc = "Getter for the `fetchStart` field of this object."]
87 #[doc = ""]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/fetchStart)"]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
91 pub fn fetch_start(this: &PerformanceResourceTiming) -> f64;
92 #[wasm_bindgen(
93 method,
94 getter,
95 js_class = "PerformanceResourceTiming",
96 js_name = "domainLookupStart"
97 )]
98 #[doc = "Getter for the `domainLookupStart` field of this object."]
99 #[doc = ""]
100 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/domainLookupStart)"]
101 #[doc = ""]
102 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
103 pub fn domain_lookup_start(this: &PerformanceResourceTiming) -> f64;
104 #[wasm_bindgen(
105 method,
106 getter,
107 js_class = "PerformanceResourceTiming",
108 js_name = "domainLookupEnd"
109 )]
110 #[doc = "Getter for the `domainLookupEnd` field of this object."]
111 #[doc = ""]
112 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)"]
113 #[doc = ""]
114 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
115 pub fn domain_lookup_end(this: &PerformanceResourceTiming) -> f64;
116 #[wasm_bindgen(
117 method,
118 getter,
119 js_class = "PerformanceResourceTiming",
120 js_name = "connectStart"
121 )]
122 #[doc = "Getter for the `connectStart` field of this object."]
123 #[doc = ""]
124 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/connectStart)"]
125 #[doc = ""]
126 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
127 pub fn connect_start(this: &PerformanceResourceTiming) -> f64;
128 #[wasm_bindgen(
129 method,
130 getter,
131 js_class = "PerformanceResourceTiming",
132 js_name = "connectEnd"
133 )]
134 #[doc = "Getter for the `connectEnd` field of this object."]
135 #[doc = ""]
136 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/connectEnd)"]
137 #[doc = ""]
138 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
139 pub fn connect_end(this: &PerformanceResourceTiming) -> f64;
140 #[wasm_bindgen(
141 method,
142 getter,
143 js_class = "PerformanceResourceTiming",
144 js_name = "secureConnectionStart"
145 )]
146 #[doc = "Getter for the `secureConnectionStart` field of this object."]
147 #[doc = ""]
148 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)"]
149 #[doc = ""]
150 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
151 pub fn secure_connection_start(this: &PerformanceResourceTiming) -> f64;
152 #[wasm_bindgen(
153 method,
154 getter,
155 js_class = "PerformanceResourceTiming",
156 js_name = "requestStart"
157 )]
158 #[doc = "Getter for the `requestStart` field of this object."]
159 #[doc = ""]
160 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/requestStart)"]
161 #[doc = ""]
162 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
163 pub fn request_start(this: &PerformanceResourceTiming) -> f64;
164 #[wasm_bindgen(
165 method,
166 getter,
167 js_class = "PerformanceResourceTiming",
168 js_name = "responseStart"
169 )]
170 #[doc = "Getter for the `responseStart` field of this object."]
171 #[doc = ""]
172 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseStart)"]
173 #[doc = ""]
174 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
175 pub fn response_start(this: &PerformanceResourceTiming) -> f64;
176 #[wasm_bindgen(
177 method,
178 getter,
179 js_class = "PerformanceResourceTiming",
180 js_name = "responseEnd"
181 )]
182 #[doc = "Getter for the `responseEnd` field of this object."]
183 #[doc = ""]
184 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseEnd)"]
185 #[doc = ""]
186 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
187 pub fn response_end(this: &PerformanceResourceTiming) -> f64;
188 #[wasm_bindgen(
189 method,
190 getter,
191 js_class = "PerformanceResourceTiming",
192 js_name = "transferSize"
193 )]
194 #[doc = "Getter for the `transferSize` field of this object."]
195 #[doc = ""]
196 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/transferSize)"]
197 #[doc = ""]
198 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
199 pub fn transfer_size(this: &PerformanceResourceTiming) -> f64;
200 #[wasm_bindgen(
201 method,
202 getter,
203 js_class = "PerformanceResourceTiming",
204 js_name = "encodedBodySize"
205 )]
206 #[doc = "Getter for the `encodedBodySize` field of this object."]
207 #[doc = ""]
208 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/encodedBodySize)"]
209 #[doc = ""]
210 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
211 pub fn encoded_body_size(this: &PerformanceResourceTiming) -> f64;
212 #[wasm_bindgen(
213 method,
214 getter,
215 js_class = "PerformanceResourceTiming",
216 js_name = "decodedBodySize"
217 )]
218 #[doc = "Getter for the `decodedBodySize` field of this object."]
219 #[doc = ""]
220 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/decodedBodySize)"]
221 #[doc = ""]
222 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
223 pub fn decoded_body_size(this: &PerformanceResourceTiming) -> f64;
224 #[wasm_bindgen(
225 method,
226 getter,
227 js_class = "PerformanceResourceTiming",
228 js_name = "serverTiming"
229 )]
230 #[doc = "Getter for the `serverTiming` field of this object."]
231 #[doc = ""]
232 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/serverTiming)"]
233 #[doc = ""]
234 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
235 pub fn server_timing(this: &PerformanceResourceTiming) -> ::js_sys::Array;
236 #[wasm_bindgen(method, js_class = "PerformanceResourceTiming", js_name = "toJSON")]
237 #[doc = "The `toJSON()` method."]
238 #[doc = ""]
239 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/toJSON)"]
240 #[doc = ""]
241 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
242 pub fn to_json(this: &PerformanceResourceTiming) -> ::js_sys::Object;
243}