-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
RtcPeerConnectionIceErrorEvent
WebAPI (#3835)
- Loading branch information
1 parent
1f12124
commit e9cb333
Showing
5 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
crates/web-sys/src/features/gen_RtcPeerConnectionIceErrorEvent.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#![allow(unused_imports)] | ||
#![allow(clippy::all)] | ||
use super::*; | ||
use wasm_bindgen::prelude::*; | ||
#[wasm_bindgen] | ||
extern "C" { | ||
# [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCPeerConnectionIceErrorEvent , typescript_type = "RTCPeerConnectionIceErrorEvent")] | ||
#[derive(Debug, Clone, PartialEq, Eq)] | ||
#[doc = "The `RtcPeerConnectionIceErrorEvent` class."] | ||
#[doc = ""] | ||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent)"] | ||
#[doc = ""] | ||
#[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] | ||
pub type RtcPeerConnectionIceErrorEvent; | ||
# [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , js_name = address)] | ||
#[doc = "Getter for the `address` field of this object."] | ||
#[doc = ""] | ||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)"] | ||
#[doc = ""] | ||
#[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] | ||
pub fn address(this: &RtcPeerConnectionIceErrorEvent) -> Option<String>; | ||
# [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , js_name = port)] | ||
#[doc = "Getter for the `port` field of this object."] | ||
#[doc = ""] | ||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/port)"] | ||
#[doc = ""] | ||
#[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] | ||
pub fn port(this: &RtcPeerConnectionIceErrorEvent) -> Option<u16>; | ||
# [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , js_name = url)] | ||
#[doc = "Getter for the `url` field of this object."] | ||
#[doc = ""] | ||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/url)"] | ||
#[doc = ""] | ||
#[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] | ||
pub fn url(this: &RtcPeerConnectionIceErrorEvent) -> String; | ||
# [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , js_name = errorCode)] | ||
#[doc = "Getter for the `errorCode` field of this object."] | ||
#[doc = ""] | ||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode)"] | ||
#[doc = ""] | ||
#[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] | ||
pub fn error_code(this: &RtcPeerConnectionIceErrorEvent) -> u16; | ||
# [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , js_name = errorText)] | ||
#[doc = "Getter for the `errorText` field of this object."] | ||
#[doc = ""] | ||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText)"] | ||
#[doc = ""] | ||
#[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] | ||
pub fn error_text(this: &RtcPeerConnectionIceErrorEvent) -> String; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
crates/web-sys/webidls/enabled/RTCPeerConnectionIceErrorEvent.webidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* The origin of this IDL file is | ||
* https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnectioniceerrorevent | ||
*/ | ||
|
||
[Exposed=Window] | ||
interface RTCPeerConnectionIceErrorEvent : Event { | ||
constructor(DOMString type, RTCPeerConnectionIceErrorEventInit eventInitDict); | ||
readonly attribute DOMString? address; | ||
readonly attribute unsigned short? port; | ||
readonly attribute DOMString url; | ||
readonly attribute unsigned short errorCode; | ||
readonly attribute USVString errorText; | ||
}; |