electron_sys/module/
content_tracing.rs

1use js_sys::Promise;
2use wasm_bindgen::prelude::*;
3
4#[wasm_bindgen(module = "electron")]
5extern {
6    #[wasm_bindgen]
7    pub type ContentTracing;
8
9    #[wasm_bindgen(js_name = "contentTracing")]
10    pub static content_tracing: ContentTracing;
11
12    #[must_use]
13    #[wasm_bindgen(method, js_name = "getCategories")]
14    pub fn get_categories(this: &ContentTracing) -> Promise;
15
16    #[must_use]
17    #[wasm_bindgen(method, js_name = "getTraceBufferUsage")]
18    pub fn get_trace_buffer_usage(this: &ContentTracing) -> Promise;
19
20    #[must_use]
21    #[wasm_bindgen(method, js_name = "startRecording")]
22    pub fn start_recording(this: &ContentTracing) -> Promise;
23
24    #[must_use]
25    #[wasm_bindgen(method, js_name = "stopRecording")]
26    pub fn stop_recording(this: &ContentTracing) -> Promise;
27}