diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_RtcRtpSender.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_RtcRtpSender.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_RtcRtpSender.rs | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_RtcRtpSender.rs b/vendor/web-sys/src/features/gen_RtcRtpSender.rs new file mode 100644 index 000000000..8de87c61b --- /dev/null +++ b/vendor/web-sys/src/features/gen_RtcRtpSender.rs @@ -0,0 +1,74 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpSender , typescript_type = "RTCRtpSender")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpSender` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] + pub type RtcRtpSender; + #[cfg(feature = "MediaStreamTrack")] + # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpSender" , js_name = track)] + #[doc = "Getter for the `track` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/track)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpSender`*"] + pub fn track(this: &RtcRtpSender) -> Option<MediaStreamTrack>; + #[cfg(feature = "RtcdtmfSender")] + # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpSender" , js_name = dtmf)] + #[doc = "Getter for the `dtmf` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/dtmf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `RtcdtmfSender`*"] + pub fn dtmf(this: &RtcRtpSender) -> Option<RtcdtmfSender>; + #[cfg(feature = "RtcRtpParameters")] + # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = getParameters)] + #[doc = "The `getParameters()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`, `RtcRtpSender`*"] + pub fn get_parameters(this: &RtcRtpSender) -> RtcRtpParameters; + # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = getStats)] + #[doc = "The `getStats()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getStats)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] + pub fn get_stats(this: &RtcRtpSender) -> ::js_sys::Promise; + #[cfg(feature = "MediaStreamTrack")] + # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = replaceTrack)] + #[doc = "The `replaceTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/replaceTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpSender`*"] + pub fn replace_track( + this: &RtcRtpSender, + with_track: Option<&MediaStreamTrack>, + ) -> ::js_sys::Promise; + # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = setParameters)] + #[doc = "The `setParameters()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/setParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] + pub fn set_parameters(this: &RtcRtpSender) -> ::js_sys::Promise; + #[cfg(feature = "RtcRtpParameters")] + # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = setParameters)] + #[doc = "The `setParameters()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/setParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`, `RtcRtpSender`*"] + pub fn set_parameters_with_parameters( + this: &RtcRtpSender, + parameters: &RtcRtpParameters, + ) -> ::js_sys::Promise; +} |