pub struct MediaTransportConfig {
pub worker_count: usize,
pub announced_ip: IpAddr,
pub bitrate_limits: SessionBitrateLimits,
pub video_bitrate_limits: VideoBitrateLimits,
pub rtc_port_range: RtcPortRange,
pub rtc_udp_io_backend: RtcUdpIoBackend,
pub codec_flags: MediaCodecFlags,
pub codec_preferences: CodecPreferences,
pub media_quality_interval: Option<Duration>,
}Expand description
operator-facing RTC transport policy used to build each RTC worker
values are immutable after construction with each worker receiving only its UDP sub-range while sharing bitrate, codec and announced IP policy
Fields§
§worker_count: usizenumber of process-local RTC workers owned by this transport
announced_ip: IpAddrclient-routable address advertised in ICE candidates
This is deployment policy, not a local bind address. A wrong value can make otherwise valid sessions unreachable from browsers.
bitrate_limits: SessionBitrateLimitsPer-user ingress and egress bitrate ceilings enforced by the transport.
video_bitrate_limits: VideoBitrateLimitsDefault video bitrate policy used while building negotiated offers.
rtc_port_range: RtcPortRangeUDP port range available to this transport config.
The top-level config covers the whole process. Worker configs carry only the sub-range assigned to one media worker.
rtc_udp_io_backend: RtcUdpIoBackendUDP I/O implementation used by RTC packet-loop workers.
codec_flags: MediaCodecFlagsEnabled codec set for offer generation and capability projection.
codec_preferences: CodecPreferencesCodec preference order preserved while constructing router capabilities.
media_quality_interval: Option<Duration>str0m stats interval used for sampled transport-quality events.
Trait Implementations§
Source§impl Clone for MediaTransportConfig
impl Clone for MediaTransportConfig
Source§fn clone(&self) -> MediaTransportConfig
fn clone(&self) -> MediaTransportConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MediaTransportConfig
impl Debug for MediaTransportConfig
impl Copy for MediaTransportConfig
Auto Trait Implementations§
impl Freeze for MediaTransportConfig
impl RefUnwindSafe for MediaTransportConfig
impl Send for MediaTransportConfig
impl Sync for MediaTransportConfig
impl Unpin for MediaTransportConfig
impl UnsafeUnpin for MediaTransportConfig
impl UnwindSafe for MediaTransportConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more