Skip to content
File

Blob: firmware/vendor/str0m/src/_internal_test_exports/mod.rs

rust49 lines
1//! Exported things with feature `_internal_test_exports`.
2 
3use crate::Rtc;
4use crate::format::PayloadParams;
5use crate::media::Media;
6use crate::media::Mid;
7use crate::rtp::{ExtensionMap, RtpHeader};
8use is::IceCreds;
9 
10pub mod fuzz;
11mod rng;
12use rng::Rng;
13 
14mod setup;
15 
16impl Rtc {
17 /// UNSTABLE: not public API!
18 pub fn _mids(&self) -> Vec<Mid> {
19 self.session.medias.iter().map(Media::mid).collect()
20 }
21 
22 /// UNSTABLE: not public API!
23 pub fn _exts(&self) -> &ExtensionMap {
24 &self.session.exts
25 }
26 
27 /// UNSTABLE: not public API!
28 pub fn _local_ice_creds(&self) -> IceCreds {
29 self.ice.local_credentials().clone()
30 }
31}
32 
33impl RtpHeader {
34 /// UNSTABLE: not public API!
35 pub fn _parse(buf: &[u8], exts: &ExtensionMap) -> Option<RtpHeader> {
36 Self::parse(buf, exts)
37 }
38}
39 
40impl PayloadParams {
41 /// UNSTABLE: not public API!
42 pub fn _is_locked(&self) -> bool {
43 self.locked
44 }
45}
46 
47/// UNSTABLE: not public API!
48pub use crate::bwe_::ProbeClusterConfig;