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(
8 extends = "MidiPort",
9 extends = "EventTarget",
10 extends = "::js_sys::Object",
11 js_name = "MIDIOutput",
12 typescript_type = "MIDIOutput"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `MidiOutput` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
20 pub type MidiOutput;
21 #[wasm_bindgen(method, js_class = "MIDIOutput")]
22 #[doc = "The `clear()` method."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/clear)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
27 pub fn clear(this: &MidiOutput);
28 #[wasm_bindgen(catch, method, js_class = "MIDIOutput")]
29 #[doc = "The `send()` method."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
34 pub fn send(this: &MidiOutput, data: &::wasm_bindgen::JsValue) -> Result<(), JsValue>;
35 #[wasm_bindgen(catch, method, js_class = "MIDIOutput", js_name = "send")]
36 #[doc = "The `send()` method."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
41 pub fn send_with_timestamp(
42 this: &MidiOutput,
43 data: &::wasm_bindgen::JsValue,
44 timestamp: f64,
45 ) -> Result<(), JsValue>;
46}