File
Blob: firmware/vendor/str0m/src/_internal_test_exports/mod.rs
| 1 | //! Exported things with feature `_internal_test_exports`. |
| 2 | |
| 3 | use crate::Rtc; |
| 4 | use crate::format::PayloadParams; |
| 5 | use crate::media::Media; |
| 6 | use crate::media::Mid; |
| 7 | use crate::rtp::{ExtensionMap, RtpHeader}; |
| 8 | use is::IceCreds; |
| 9 | |
| 10 | pub mod fuzz; |
| 11 | mod rng; |
| 12 | use rng::Rng; |
| 13 | |
| 14 | mod setup; |
| 15 | |
| 16 | impl 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 | |
| 33 | impl RtpHeader { |
| 34 | /// UNSTABLE: not public API! |
| 35 | pub fn _parse(buf: &[u8], exts: &ExtensionMap) -> Option<RtpHeader> { |
| 36 | Self::parse(buf, exts) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | impl PayloadParams { |
| 41 | /// UNSTABLE: not public API! |
| 42 | pub fn _is_locked(&self) -> bool { |
| 43 | self.locked |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /// UNSTABLE: not public API! |
| 48 | pub use crate::bwe_::ProbeClusterConfig; |