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 (extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceResourceTiming , typescript_type = "PerformanceResourceTiming")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `PerformanceResourceTiming` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
14 pub type PerformanceResourceTiming;
15 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = initiatorType)]
16 #[doc = "Getter for the `initiatorType` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/initiatorType)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
21 pub fn initiator_type(this: &PerformanceResourceTiming) -> ::alloc::string::String;
22 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = nextHopProtocol)]
23 #[doc = "Getter for the `nextHopProtocol` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
28 pub fn next_hop_protocol(this: &PerformanceResourceTiming) -> ::alloc::string::String;
29 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = workerStart)]
30 #[doc = "Getter for the `workerStart` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/workerStart)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
35 pub fn worker_start(this: &PerformanceResourceTiming) -> f64;
36 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = redirectStart)]
37 #[doc = "Getter for the `redirectStart` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/redirectStart)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
42 pub fn redirect_start(this: &PerformanceResourceTiming) -> f64;
43 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = redirectEnd)]
44 #[doc = "Getter for the `redirectEnd` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/redirectEnd)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
49 pub fn redirect_end(this: &PerformanceResourceTiming) -> f64;
50 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = fetchStart)]
51 #[doc = "Getter for the `fetchStart` field of this object."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/fetchStart)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
56 pub fn fetch_start(this: &PerformanceResourceTiming) -> f64;
57 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = domainLookupStart)]
58 #[doc = "Getter for the `domainLookupStart` field of this object."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/domainLookupStart)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
63 pub fn domain_lookup_start(this: &PerformanceResourceTiming) -> f64;
64 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = domainLookupEnd)]
65 #[doc = "Getter for the `domainLookupEnd` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
70 pub fn domain_lookup_end(this: &PerformanceResourceTiming) -> f64;
71 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = connectStart)]
72 #[doc = "Getter for the `connectStart` field of this object."]
73 #[doc = ""]
74 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/connectStart)"]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
77 pub fn connect_start(this: &PerformanceResourceTiming) -> f64;
78 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = connectEnd)]
79 #[doc = "Getter for the `connectEnd` field of this object."]
80 #[doc = ""]
81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/connectEnd)"]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
84 pub fn connect_end(this: &PerformanceResourceTiming) -> f64;
85 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = secureConnectionStart)]
86 #[doc = "Getter for the `secureConnectionStart` field of this object."]
87 #[doc = ""]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)"]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
91 pub fn secure_connection_start(this: &PerformanceResourceTiming) -> f64;
92 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = requestStart)]
93 #[doc = "Getter for the `requestStart` field of this object."]
94 #[doc = ""]
95 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/requestStart)"]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
98 pub fn request_start(this: &PerformanceResourceTiming) -> f64;
99 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = responseStart)]
100 #[doc = "Getter for the `responseStart` field of this object."]
101 #[doc = ""]
102 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseStart)"]
103 #[doc = ""]
104 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
105 pub fn response_start(this: &PerformanceResourceTiming) -> f64;
106 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = responseEnd)]
107 #[doc = "Getter for the `responseEnd` field of this object."]
108 #[doc = ""]
109 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseEnd)"]
110 #[doc = ""]
111 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
112 pub fn response_end(this: &PerformanceResourceTiming) -> f64;
113 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = transferSize)]
114 #[doc = "Getter for the `transferSize` field of this object."]
115 #[doc = ""]
116 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/transferSize)"]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
119 pub fn transfer_size(this: &PerformanceResourceTiming) -> f64;
120 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = encodedBodySize)]
121 #[doc = "Getter for the `encodedBodySize` field of this object."]
122 #[doc = ""]
123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/encodedBodySize)"]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
126 pub fn encoded_body_size(this: &PerformanceResourceTiming) -> f64;
127 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = decodedBodySize)]
128 #[doc = "Getter for the `decodedBodySize` field of this object."]
129 #[doc = ""]
130 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/decodedBodySize)"]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
133 pub fn decoded_body_size(this: &PerformanceResourceTiming) -> f64;
134 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = serverTiming)]
135 #[doc = "Getter for the `serverTiming` field of this object."]
136 #[doc = ""]
137 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/serverTiming)"]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
140 pub fn server_timing(this: &PerformanceResourceTiming) -> ::js_sys::Array;
141 # [wasm_bindgen (method , structural , js_class = "PerformanceResourceTiming" , js_name = toJSON)]
142 #[doc = "The `toJSON()` method."]
143 #[doc = ""]
144 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/toJSON)"]
145 #[doc = ""]
146 #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"]
147 pub fn to_json(this: &PerformanceResourceTiming) -> ::js_sys::Object;
148}