Skip to content

Commit 60ef728

Browse files
logist322rainliu
authored andcommitted
Add docs
1 parent b6cd809 commit 60ef728

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

webrtc/src/api/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,12 @@ impl API {
169169
.await
170170
}
171171

172+
/// Returns the internal [`SettingEngine`].
172173
pub fn setting_engine(&self) -> Arc<SettingEngine> {
173174
Arc::clone(&self.setting_engine)
174175
}
175176

177+
/// Returns the internal [`MediaEngine`].
176178
pub fn media_engine(&self) -> Arc<MediaEngine> {
177179
Arc::clone(&self.media_engine)
178180
}

webrtc/src/peer_connection/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,10 +2074,12 @@ impl RTCPeerConnection {
20742074
gathering_complete_rx
20752075
}
20762076

2077+
/// Returns the internal [`RTCDtlsTransport`].
20772078
pub fn dtls_transport(&self) -> Arc<RTCDtlsTransport> {
20782079
Arc::clone(&self.internal.dtls_transport)
20792080
}
20802081

2082+
/// Adds the specified [`RTCRtpTransceiver`] to this [`RTCPeerConnection`].
20812083
pub async fn add_transceiver(&self, t: Arc<RTCRtpTransceiver>) {
20822084
self.internal.add_rtp_transceiver(t).await
20832085
}

0 commit comments

Comments
 (0)