1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! # Feature flags
//!
//! - **openssl** — Enables OpenSSL backend.
//! - **pem** — Adds support for loading PEM certificates.
//! - **vendored-openssl** — Builds and statically links vendored OpenSSL.
pub use ;
/// [`peer_connection::RTCPeerConnection`] allows to establish connection between two peers given RTC configuration. Its API is similar to one in JavaScript.
/// The utilities defining transport between peers. Contains [`ice_transport::ice_server::RTCIceServer`] struct which describes how peer does ICE (Interactive Connectivity Establishment).
/// WebRTC DataChannel can be used for peer-to-peer transmitting arbitrary binary data.
/// Module responsible for multiplexing data streams of different protocols on one socket. Custom [`mux::endpoint::Endpoint`] with [`mux::mux_func::MatchFunc`] can be used for parsing your application-specific byte stream.
// TODO: why is this public? does someone really extend WebRTC stack?
/// Measuring connection statistics, such as amount of data transmitted or round trip time.
/// [`Error`] enumerates WebRTC problems, [`error::OnErrorHdlrFn`] defines type for callback-logger.
/// Set of constructors for WebRTC primitives. Subject to deprecation in future.
pub use Error;
extern crate lazy_static;
pub const UNSPECIFIED_STR: &str = "Unspecified";
/// Equal to UDP MTU
pub const RECEIVE_MTU: usize = 1460;
pub const SDP_ATTRIBUTE_RID: &str = "rid";
pub const SDP_ATTRIBUTE_SIMULCAST: &str = "simulcast";
pub const GENERATED_CERTIFICATE_ORIGIN: &str = "WebRTC";