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