diff --git a/webrtc/src/data_channel/data_channel_init.rs b/webrtc/src/data_channel/data_channel_init.rs index 5adbdb721..3de6ea80d 100644 --- a/webrtc/src/data_channel/data_channel_init.rs +++ b/webrtc/src/data_channel/data_channel_init.rs @@ -1,5 +1,11 @@ /// DataChannelConfig can be used to configure properties of the underlying /// channel such as data reliability. +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-rtcdatachannelinit #[derive(Default, Debug, Clone)] pub struct RTCDataChannelInit { /// ordered indicates if data is allowed to be delivered out of order. The diff --git a/webrtc/src/data_channel/data_channel_state.rs b/webrtc/src/data_channel/data_channel_state.rs index 38ea04cb0..23b780f53 100644 --- a/webrtc/src/data_channel/data_channel_state.rs +++ b/webrtc/src/data_channel/data_channel_state.rs @@ -3,6 +3,14 @@ use std::fmt; use serde::{Deserialize, Serialize}; /// DataChannelState indicates the state of a data channel. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/readyState +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-rtcdatachannelstate #[derive(Default, Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)] pub enum RTCDataChannelState { #[serde(rename = "unspecified")] diff --git a/webrtc/src/data_channel/mod.rs b/webrtc/src/data_channel/mod.rs index bdf05af2f..381a1f3f4 100644 --- a/webrtc/src/data_channel/mod.rs +++ b/webrtc/src/data_channel/mod.rs @@ -47,6 +47,14 @@ pub type OnCloseHdlrFn = /// DataChannel represents a WebRTC DataChannel /// The DataChannel interface represents a network channel /// which can be used for bidirectional peer-to-peer transfers of arbitrary data +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-rtcdatachannel #[derive(Default)] pub struct RTCDataChannel { pub(crate) stats_id: String, diff --git a/webrtc/src/dtls_transport/dtls_fingerprint.rs b/webrtc/src/dtls_transport/dtls_fingerprint.rs index eaea36763..bd3c58115 100644 --- a/webrtc/src/dtls_transport/dtls_fingerprint.rs +++ b/webrtc/src/dtls_transport/dtls_fingerprint.rs @@ -1,7 +1,14 @@ use serde::{Deserialize, Serialize}; /// DTLSFingerprint specifies the hash function algorithm and certificate -/// fingerprint as described in . +/// fingerprint as described in [RFC 4572]. +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcdtlsfingerprint +/// [RFC 4572]: https://tools.ietf.org/html/rfc4572 #[derive(Default, Debug, Clone, Serialize, Deserialize)] pub struct RTCDtlsFingerprint { /// Algorithm specifies one of the the hash function algorithms defined in diff --git a/webrtc/src/dtls_transport/dtls_transport_state.rs b/webrtc/src/dtls_transport/dtls_transport_state.rs index 3700d8b81..cd63419b6 100644 --- a/webrtc/src/dtls_transport/dtls_transport_state.rs +++ b/webrtc/src/dtls_transport/dtls_transport_state.rs @@ -1,6 +1,14 @@ use std::fmt; /// DTLSTransportState indicates the DTLS transport establishment state. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCDtlsTransport/state +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-rtcdtlstransportstate #[derive(Default, Debug, Copy, Clone, PartialEq, Eq)] pub enum RTCDtlsTransportState { #[default] diff --git a/webrtc/src/ice_transport/ice_candidate.rs b/webrtc/src/ice_transport/ice_candidate.rs index 9eab74dae..cb13cfc06 100644 --- a/webrtc/src/ice_transport/ice_candidate.rs +++ b/webrtc/src/ice_transport/ice_candidate.rs @@ -14,6 +14,14 @@ use crate::ice_transport::ice_candidate_type::RTCIceCandidateType; use crate::ice_transport::ice_protocol::RTCIceProtocol; /// ICECandidate represents a ice candidate +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcicecandidate-interface #[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct RTCIceCandidate { pub stats_id: String, diff --git a/webrtc/src/ice_transport/ice_candidate_pair.rs b/webrtc/src/ice_transport/ice_candidate_pair.rs index 8c0684c0d..646360087 100644 --- a/webrtc/src/ice_transport/ice_candidate_pair.rs +++ b/webrtc/src/ice_transport/ice_candidate_pair.rs @@ -3,6 +3,12 @@ use std::fmt; use crate::ice_transport::ice_candidate::*; /// ICECandidatePair represents an ICE Candidate pair +/// +/// ## Specifications +/// +/// * [MDN] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidatePair #[derive(Default, Debug, Clone, PartialEq, Eq)] pub struct RTCIceCandidatePair { stats_id: String, diff --git a/webrtc/src/ice_transport/ice_candidate_type.rs b/webrtc/src/ice_transport/ice_candidate_type.rs index ec44328f7..523c00659 100644 --- a/webrtc/src/ice_transport/ice_candidate_type.rs +++ b/webrtc/src/ice_transport/ice_candidate_type.rs @@ -4,6 +4,14 @@ use ice::candidate::CandidateType; use serde::{Deserialize, Serialize}; /// ICECandidateType represents the type of the ICE candidate used. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidateStats/candidateType +/// [w3c]: https://w3c.github.io/webrtc-stats/#dom-rtcicecandidatestats-candidatetype #[derive(Default, Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)] pub enum RTCIceCandidateType { #[default] diff --git a/webrtc/src/ice_transport/ice_connection_state.rs b/webrtc/src/ice_transport/ice_connection_state.rs index d019854ae..ebb4b387b 100644 --- a/webrtc/src/ice_transport/ice_connection_state.rs +++ b/webrtc/src/ice_transport/ice_connection_state.rs @@ -1,6 +1,14 @@ use std::fmt; /// RTCIceConnectionState indicates signaling state of the ICE Connection. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceConnectionState +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-peerconnection-ice-connection-state #[derive(Default, Debug, Copy, Clone, PartialEq, Eq)] pub enum RTCIceConnectionState { #[default] diff --git a/webrtc/src/ice_transport/ice_gatherer_state.rs b/webrtc/src/ice_transport/ice_gatherer_state.rs index 7b24e9968..f6b7cf47d 100644 --- a/webrtc/src/ice_transport/ice_gatherer_state.rs +++ b/webrtc/src/ice_transport/ice_gatherer_state.rs @@ -1,6 +1,12 @@ use std::fmt; /// ICEGathererState represents the current state of the ICE gatherer. +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcicegathererstate #[derive(Default, Debug, Copy, Clone, PartialEq, Eq)] pub enum RTCIceGathererState { #[default] diff --git a/webrtc/src/ice_transport/ice_gathering_state.rs b/webrtc/src/ice_transport/ice_gathering_state.rs index fa043312d..e36e9656a 100644 --- a/webrtc/src/ice_transport/ice_gathering_state.rs +++ b/webrtc/src/ice_transport/ice_gathering_state.rs @@ -1,6 +1,14 @@ use std::fmt; /// ICEGatheringState describes the state of the candidate gathering process. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceGatheringState +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-peerconnection-ice-gathering-state #[derive(Default, Debug, Copy, Clone, PartialEq, Eq)] pub enum RTCIceGatheringState { #[default] diff --git a/webrtc/src/ice_transport/ice_parameters.rs b/webrtc/src/ice_transport/ice_parameters.rs index 048e359b9..1542df22f 100644 --- a/webrtc/src/ice_transport/ice_parameters.rs +++ b/webrtc/src/ice_transport/ice_parameters.rs @@ -2,6 +2,14 @@ use serde::{Deserialize, Serialize}; /// ICEParameters includes the ICE username fragment /// and password and other ICE-related parameters. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCIceParameters +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtciceparameters #[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct RTCIceParameters { pub username_fragment: String, diff --git a/webrtc/src/ice_transport/ice_protocol.rs b/webrtc/src/ice_transport/ice_protocol.rs index 308912505..ab314868e 100644 --- a/webrtc/src/ice_transport/ice_protocol.rs +++ b/webrtc/src/ice_transport/ice_protocol.rs @@ -4,6 +4,14 @@ use serde::{Deserialize, Serialize}; /// ICEProtocol indicates the transport protocol type that is used in the /// ice.URL structure. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/protocol +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtciceprotocol-enum #[derive(Default, Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)] pub enum RTCIceProtocol { #[default] diff --git a/webrtc/src/ice_transport/ice_role.rs b/webrtc/src/ice_transport/ice_role.rs index 699dd4b45..34c960918 100644 --- a/webrtc/src/ice_transport/ice_role.rs +++ b/webrtc/src/ice_transport/ice_role.rs @@ -2,6 +2,14 @@ use std::fmt; /// ICERole describes the role ice.Agent is playing in selecting the /// preferred the candidate pair. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/role +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-rtcicerole #[derive(Default, Debug, Copy, Clone, PartialEq, Eq)] pub enum RTCIceRole { #[default] diff --git a/webrtc/src/ice_transport/ice_server.rs b/webrtc/src/ice_transport/ice_server.rs index 0ae4a8208..87b2698a9 100644 --- a/webrtc/src/ice_transport/ice_server.rs +++ b/webrtc/src/ice_transport/ice_server.rs @@ -4,6 +4,12 @@ use crate::error::{Error, Result}; /// ICEServer describes a single STUN and TURN server that can be used by /// the ICEAgent to establish a connection with a peer. +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-rtciceserver #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize, Hash)] pub struct RTCIceServer { pub urls: Vec, diff --git a/webrtc/src/ice_transport/ice_transport_state.rs b/webrtc/src/ice_transport/ice_transport_state.rs index 2abdedef4..2ce911a59 100644 --- a/webrtc/src/ice_transport/ice_transport_state.rs +++ b/webrtc/src/ice_transport/ice_transport_state.rs @@ -3,6 +3,14 @@ use std::fmt; use ice::state::ConnectionState; /// ICETransportState represents the current state of the ICE transport. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/state +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-rtcicetransportstate #[derive(Default, Debug, Copy, Clone, PartialEq, Eq)] pub enum RTCIceTransportState { #[default] diff --git a/webrtc/src/peer_connection/certificate.rs b/webrtc/src/peer_connection/certificate.rs index 5f9b962a9..d526620be 100644 --- a/webrtc/src/peer_connection/certificate.rs +++ b/webrtc/src/peer_connection/certificate.rs @@ -15,6 +15,14 @@ use crate::stats::stats_collector::StatsCollector; use crate::stats::{CertificateStats, StatsReportType}; /// Certificate represents a X.509 certificate used to authenticate WebRTC communications. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCCertificate +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-rtccertificate #[derive(Clone, Debug)] pub struct RTCCertificate { /// DTLS certificate. diff --git a/webrtc/src/peer_connection/configuration.rs b/webrtc/src/peer_connection/configuration.rs index 58793fb53..aa30369e9 100644 --- a/webrtc/src/peer_connection/configuration.rs +++ b/webrtc/src/peer_connection/configuration.rs @@ -9,6 +9,12 @@ use crate::peer_connection::policy::rtcp_mux_policy::RTCRtcpMuxPolicy; /// Configurations may be set up once and reused across multiple connections. /// Configurations are treated as readonly. As long as they are unmodified, /// they are safe for concurrent use. +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcconfiguration-dictionary #[derive(Default, Clone)] pub struct RTCConfiguration { /// iceservers defines a slice describing servers available to be used by diff --git a/webrtc/src/peer_connection/offer_answer_options.rs b/webrtc/src/peer_connection/offer_answer_options.rs index a7be6490b..54067247d 100644 --- a/webrtc/src/peer_connection/offer_answer_options.rs +++ b/webrtc/src/peer_connection/offer_answer_options.rs @@ -9,6 +9,12 @@ pub struct RTCAnswerOptions { /// OfferOptions structure describes the options used to control the offer /// creation process +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#dictionary-rtcofferoptions-members #[derive(Default, Debug, PartialEq, Eq, Copy, Clone)] pub struct RTCOfferOptions { /// voice_activity_detection allows the application to provide information diff --git a/webrtc/src/peer_connection/peer_connection_state.rs b/webrtc/src/peer_connection/peer_connection_state.rs index 905e26769..10acef584 100644 --- a/webrtc/src/peer_connection/peer_connection_state.rs +++ b/webrtc/src/peer_connection/peer_connection_state.rs @@ -1,6 +1,14 @@ use std::fmt; /// PeerConnectionState indicates the state of the PeerConnection. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/connectionState +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-peerconnection-connection-state #[derive(Default, Debug, Copy, Clone, PartialEq, Eq)] pub enum RTCPeerConnectionState { #[default] diff --git a/webrtc/src/peer_connection/policy/bundle_policy.rs b/webrtc/src/peer_connection/policy/bundle_policy.rs index 040228f26..5d3fad207 100644 --- a/webrtc/src/peer_connection/policy/bundle_policy.rs +++ b/webrtc/src/peer_connection/policy/bundle_policy.rs @@ -6,6 +6,12 @@ use serde::{Deserialize, Serialize}; /// endpoint is not bundle-aware, and what ICE candidates are gathered. If the /// remote endpoint is bundle-aware, all media tracks and data channels are /// bundled onto the same transport. +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcbundlepolicy-enum #[derive(Default, Debug, PartialEq, Eq, Copy, Clone, Serialize, Deserialize)] pub enum RTCBundlePolicy { #[default] diff --git a/webrtc/src/peer_connection/policy/ice_transport_policy.rs b/webrtc/src/peer_connection/policy/ice_transport_policy.rs index 331ebe60b..b2d72db8f 100644 --- a/webrtc/src/peer_connection/policy/ice_transport_policy.rs +++ b/webrtc/src/peer_connection/policy/ice_transport_policy.rs @@ -4,6 +4,12 @@ use serde::{Deserialize, Serialize}; /// ICETransportPolicy defines the ICE candidate policy surface the /// permitted candidates. Only these candidates are used for connectivity checks. +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcicetransportpolicy-enum #[derive(Default, Debug, PartialEq, Eq, Copy, Clone, Serialize, Deserialize)] pub enum RTCIceTransportPolicy { #[default] diff --git a/webrtc/src/peer_connection/policy/rtcp_mux_policy.rs b/webrtc/src/peer_connection/policy/rtcp_mux_policy.rs index 35ecccaae..96a969b0c 100644 --- a/webrtc/src/peer_connection/policy/rtcp_mux_policy.rs +++ b/webrtc/src/peer_connection/policy/rtcp_mux_policy.rs @@ -4,6 +4,12 @@ use serde::{Deserialize, Serialize}; /// RTCPMuxPolicy affects what ICE candidates are gathered to support /// non-multiplexed RTCP. +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcrtcpmuxpolicy-enum #[derive(Default, Debug, PartialEq, Eq, Copy, Clone, Serialize, Deserialize)] pub enum RTCRtcpMuxPolicy { #[default] diff --git a/webrtc/src/peer_connection/sdp/sdp_type.rs b/webrtc/src/peer_connection/sdp/sdp_type.rs index 830864f79..010c0de4b 100644 --- a/webrtc/src/peer_connection/sdp/sdp_type.rs +++ b/webrtc/src/peer_connection/sdp/sdp_type.rs @@ -3,6 +3,14 @@ use std::fmt; use serde::{Deserialize, Serialize}; /// SDPType describes the type of an SessionDescription. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/type +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-rtcsessiondescription-type #[derive(Default, Debug, PartialEq, Eq, Copy, Clone, Serialize, Deserialize)] pub enum RTCSdpType { #[default] diff --git a/webrtc/src/peer_connection/sdp/session_description.rs b/webrtc/src/peer_connection/sdp/session_description.rs index 7085f34dd..76a0f74ab 100644 --- a/webrtc/src/peer_connection/sdp/session_description.rs +++ b/webrtc/src/peer_connection/sdp/session_description.rs @@ -7,6 +7,14 @@ use super::sdp_type::RTCSdpType; use crate::error::Result; /// SessionDescription is used to expose local and remote session descriptions. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcsessiondescription-class #[derive(Default, Debug, Clone, Serialize, Deserialize)] pub struct RTCSessionDescription { #[serde(rename = "type")] diff --git a/webrtc/src/peer_connection/signaling_state.rs b/webrtc/src/peer_connection/signaling_state.rs index 2edd613be..1f9bab78a 100644 --- a/webrtc/src/peer_connection/signaling_state.rs +++ b/webrtc/src/peer_connection/signaling_state.rs @@ -21,6 +21,14 @@ impl fmt::Display for StateChangeOp { } /// SignalingState indicates the signaling state of the offer/answer process. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/signalingState +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-peerconnection-signaling-state #[derive(Default, Debug, Copy, Clone, PartialEq, Eq)] pub enum RTCSignalingState { #[default] diff --git a/webrtc/src/rtp_transceiver/rtp_codec.rs b/webrtc/src/rtp_transceiver/rtp_codec.rs index 5bf57501c..6c580b5f0 100644 --- a/webrtc/src/rtp_transceiver/rtp_codec.rs +++ b/webrtc/src/rtp_transceiver/rtp_codec.rs @@ -50,7 +50,12 @@ impl fmt::Display for RTPCodecType { } /// RTPCodecCapability provides information about codec capabilities. -/// +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#dictionary-rtcrtpcodeccapability-members #[derive(Default, Debug, Clone, PartialEq, Eq)] pub struct RTCRtpCodecCapability { pub mime_type: String, diff --git a/webrtc/src/rtp_transceiver/rtp_receiver/mod.rs b/webrtc/src/rtp_transceiver/rtp_receiver/mod.rs index e589ee575..abeae0609 100644 --- a/webrtc/src/rtp_transceiver/rtp_receiver/mod.rs +++ b/webrtc/src/rtp_transceiver/rtp_receiver/mod.rs @@ -391,6 +391,14 @@ impl RTPReceiverInternal { } /// RTPReceiver allows an application to inspect the receipt of a TrackRemote +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface pub struct RTCRtpReceiver { receive_mtu: usize, kind: RTPCodecType, diff --git a/webrtc/src/rtp_transceiver/rtp_sender/mod.rs b/webrtc/src/rtp_transceiver/rtp_sender/mod.rs index 8d86b6b5b..b0caab7cb 100644 --- a/webrtc/src/rtp_transceiver/rtp_sender/mod.rs +++ b/webrtc/src/rtp_transceiver/rtp_sender/mod.rs @@ -42,6 +42,14 @@ pub(crate) struct TrackEncoding { } /// RTPSender allows an application to control how a given Track is encoded and transmitted to a remote peer +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcrtpsender-interface pub struct RTCRtpSender { pub(crate) track_encodings: Mutex>, diff --git a/webrtc/src/rtp_transceiver/rtp_transceiver_direction.rs b/webrtc/src/rtp_transceiver/rtp_transceiver_direction.rs index 756731ede..13e6ac088 100644 --- a/webrtc/src/rtp_transceiver/rtp_transceiver_direction.rs +++ b/webrtc/src/rtp_transceiver/rtp_transceiver_direction.rs @@ -1,6 +1,14 @@ use std::fmt; /// RTPTransceiverDirection indicates the direction of the RTPTransceiver. +/// +/// ## Specifications +/// +/// * [MDN] +/// * [w3c] +/// +/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/direction +/// [w3c]: https://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiver-direction #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub enum RTCRtpTransceiverDirection { Unspecified, diff --git a/webrtc/src/sctp_transport/sctp_transport_state.rs b/webrtc/src/sctp_transport/sctp_transport_state.rs index 310b814c5..8c584f0f4 100644 --- a/webrtc/src/sctp_transport/sctp_transport_state.rs +++ b/webrtc/src/sctp_transport/sctp_transport_state.rs @@ -1,6 +1,12 @@ use std::fmt; /// SCTPTransportState indicates the state of the SCTP transport. +/// +/// ## Specifications +/// +/// * [w3c] +/// +/// [w3c]: https://w3c.github.io/webrtc-pc/#rtcsctptransportstate #[derive(Default, Debug, Copy, Clone, PartialEq, Eq)] #[repr(u8)] pub enum RTCSctpTransportState {