Skip to content

Commit 9bde365

Browse files
author
yngrtc
committed
update docs
1 parent 1e3fae2 commit 9bde365

File tree

17 files changed

+49
-30
lines changed

17 files changed

+49
-30
lines changed

src/description/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use url::Url;
3636
pub(crate) const UNSPECIFIED_STR: &str = "Unspecified";
3737
pub(crate) const SDP_ATTRIBUTE_RID: &str = "rid";
3838

39-
/// SessionDescription is used to expose local and remote session descriptions.
39+
/// RTCSessionDescription is used to expose local and remote session descriptions.
4040
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
4141
pub struct RTCSessionDescription {
4242
#[serde(rename = "type")]

src/handler/data.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ use shared::marshal::*;
1212
struct DataChannelInbound;
1313
#[derive(Default)]
1414
struct DataChannelOutbound;
15+
16+
/// DataChannelHandler implements DataChannel Protocol handling
1517
#[derive(Default)]
1618
pub struct DataChannelHandler {
1719
data_channel_inbound: DataChannelInbound,

src/handler/demuxer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ fn match_srtp(b: &[u8]) -> bool {
4343
struct DemuxerInbound;
4444
#[derive(Default)]
4545
struct DemuxerOutbound;
46+
47+
/// DemuxerHandler implements demuxing of STUN/DTLS/RTP/RTCP Protocol packets
4648
#[derive(Default)]
4749
pub struct DemuxerHandler {
4850
demuxer_inbound: DemuxerInbound,

src/handler/dtls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ struct DtlsOutbound {
2626
local_addr: SocketAddr,
2727
server_states: Rc<RefCell<ServerStates>>,
2828
}
29+
30+
/// DtlsHandler implements DTLS Protocol handling
2931
pub struct DtlsHandler {
3032
dtls_inbound: DtlsInbound,
3133
dtls_outbound: DtlsOutbound,

src/handler/exception.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ struct ExceptionInbound;
88
#[derive(Default)]
99
struct ExceptionOutbound;
1010

11+
/// ExceptionHandler implements exception handling for inbound or outbound directions
1112
#[derive(Default)]
1213
pub struct ExceptionHandler {
1314
exception_inbound: ExceptionInbound,

src/handler/gateway.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ struct GatewayOutbound {
3333
server_states: Rc<RefCell<ServerStates>>,
3434
}
3535

36+
/// GatewayHandler implements Data/Media Selective Forward handling
3637
pub struct GatewayHandler {
3738
gateway_inbound: GatewayInbound,
3839
gateway_outbound: GatewayOutbound,

src/handler/interceptor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ struct InterceptorInbound {
1515
struct InterceptorOutbound {
1616
server_states: Rc<RefCell<ServerStates>>,
1717
}
18+
19+
/// InterceptorHandler implements RTCP feedback handling
1820
pub struct InterceptorHandler {
1921
interceptor_inbound: InterceptorInbound,
2022
interceptor_outbound: InterceptorOutbound,

src/handler/sctp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ struct SctpOutbound {
2929
local_addr: SocketAddr,
3030
server_states: Rc<RefCell<ServerStates>>,
3131
}
32+
33+
/// SctpHandler implements SCTP Protocol handling
3234
pub struct SctpHandler {
3335
sctp_inbound: SctpInbound,
3436
sctp_outbound: SctpOutbound,

src/handler/srtp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ struct SrtpInbound {
1717
struct SrtpOutbound {
1818
server_states: Rc<RefCell<ServerStates>>, // for local_srtp_context
1919
}
20+
21+
/// SrtpHandler implements SRTP/RTP/RTCP Protocols handling
2022
pub struct SrtpHandler {
2123
srtp_inbound: SrtpInbound,
2224
srtp_outbound: SrtpOutbound,

src/handler/stun.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ use stun::message::Message;
99
struct StunInbound;
1010
#[derive(Default)]
1111
struct StunOutbound;
12+
13+
/// StunHandler implements STUN Protocol handling
1214
#[derive(Default)]
1315
pub struct StunHandler {
1416
stun_inbound: StunInbound,

0 commit comments

Comments
 (0)