1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TCPSocketErrorEvent , typescript_type = "TCPSocketErrorEvent")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `TcpSocketErrorEvent` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] 13 pub type TcpSocketErrorEvent; 14 # [wasm_bindgen (structural , method , getter , js_class = "TCPSocketErrorEvent" , js_name = name)] 15 #[doc = "Getter for the `name` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/name)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] name(this: &TcpSocketErrorEvent) -> String20 pub fn name(this: &TcpSocketErrorEvent) -> String; 21 # [wasm_bindgen (structural , method , getter , js_class = "TCPSocketErrorEvent" , js_name = message)] 22 #[doc = "Getter for the `message` field of this object."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/message)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] message(this: &TcpSocketErrorEvent) -> String27 pub fn message(this: &TcpSocketErrorEvent) -> String; 28 #[wasm_bindgen(catch, constructor, js_class = "TCPSocketErrorEvent")] 29 #[doc = "The `new TcpSocketErrorEvent(..)` constructor, creating a new instance of `TcpSocketErrorEvent`."] 30 #[doc = ""] 31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/TCPSocketErrorEvent)"] 32 #[doc = ""] 33 #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] new(type_: &str) -> Result<TcpSocketErrorEvent, JsValue>34 pub fn new(type_: &str) -> Result<TcpSocketErrorEvent, JsValue>; 35 #[cfg(feature = "TcpSocketErrorEventInit")] 36 #[wasm_bindgen(catch, constructor, js_class = "TCPSocketErrorEvent")] 37 #[doc = "The `new TcpSocketErrorEvent(..)` constructor, creating a new instance of `TcpSocketErrorEvent`."] 38 #[doc = ""] 39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/TCPSocketErrorEvent)"] 40 #[doc = ""] 41 #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`, `TcpSocketErrorEventInit`*"] new_with_event_init_dict( type_: &str, event_init_dict: &TcpSocketErrorEventInit, ) -> Result<TcpSocketErrorEvent, JsValue>42 pub fn new_with_event_init_dict( 43 type_: &str, 44 event_init_dict: &TcpSocketErrorEventInit, 45 ) -> Result<TcpSocketErrorEvent, JsValue>; 46 } 47