web_sys/features/
gen_MidiOutput.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = MidiPort , extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIOutput , typescript_type = "MIDIOutput")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `MidiOutput` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
14 pub type MidiOutput;
15 # [wasm_bindgen (method , structural , js_class = "MIDIOutput" , js_name = clear)]
16 #[doc = "The `clear()` method."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/clear)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
21 pub fn clear(this: &MidiOutput);
22 # [wasm_bindgen (catch , method , structural , js_class = "MIDIOutput" , js_name = send)]
23 #[doc = "The `send()` method."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
28 pub fn send(this: &MidiOutput, data: &::wasm_bindgen::JsValue) -> Result<(), JsValue>;
29 # [wasm_bindgen (catch , method , structural , js_class = "MIDIOutput" , js_name = send)]
30 #[doc = "The `send()` method."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
35 pub fn send_with_timestamp(
36 this: &MidiOutput,
37 data: &::wasm_bindgen::JsValue,
38 timestamp: f64,
39 ) -> Result<(), JsValue>;
40}