pub struct RoomRuntimePolicy {
pub admission_policy: RoomAdmissionPolicy,
pub feature_flags: RuntimeFeatureFlags,
pub router_rtp_capabilities: MediaCapabilities,
pub room_worker_policy: RoomWorkerPolicy,
pub media_limits: RoomMediaLimits,
pub video_adaptation_tuning: VideoAdaptationTuning,
}Expand description
stable runtime policy bundle shared by the room and its state model
this groups the room rules that are fixed for the room lifetime and read by more than one boundary during join, negotiation and observability work
Fields§
§admission_policy: RoomAdmissionPolicyroom-level admission limits enforced by room state
feature_flags: RuntimeFeatureFlagsfeature surface the room advertises to clients
router_rtp_capabilities: MediaCapabilitiesrouter-native capability baseline used for negotiation and bootstrap
room_worker_policy: RoomWorkerPolicysame-room local worker-placement policy selected at runtime boot
media_limits: RoomMediaLimitsroom media activation caps applied by source policy
video_adaptation_tuning: VideoAdaptationTuningreceiver video adaptation knobs applied by source policy
Implementations§
Source§impl RoomRuntimePolicy
impl RoomRuntimePolicy
pub fn new( admission_policy: RoomAdmissionPolicy, feature_flags: RuntimeFeatureFlags, router_rtp_capabilities: MediaCapabilities, ) -> Self
Sourcepub fn with_room_worker_policy(
self,
room_worker_policy: RoomWorkerPolicy,
) -> Self
pub fn with_room_worker_policy( self, room_worker_policy: RoomWorkerPolicy, ) -> Self
return a room policy that uses the provided same-room worker policy
Sourcepub fn with_media_limits(self, media_limits: RoomMediaLimits) -> Self
pub fn with_media_limits(self, media_limits: RoomMediaLimits) -> Self
return a room policy that uses the provided media activation limits
pub fn with_video_adaptation_tuning( self, video_adaptation_tuning: VideoAdaptationTuning, ) -> Self
Trait Implementations§
Source§impl Clone for RoomRuntimePolicy
impl Clone for RoomRuntimePolicy
Source§fn clone(&self) -> RoomRuntimePolicy
fn clone(&self) -> RoomRuntimePolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoomRuntimePolicy
impl Debug for RoomRuntimePolicy
Source§impl PartialEq for RoomRuntimePolicy
impl PartialEq for RoomRuntimePolicy
impl Eq for RoomRuntimePolicy
impl StructuralPartialEq for RoomRuntimePolicy
Auto Trait Implementations§
impl Freeze for RoomRuntimePolicy
impl RefUnwindSafe for RoomRuntimePolicy
impl Send for RoomRuntimePolicy
impl Sync for RoomRuntimePolicy
impl Unpin for RoomRuntimePolicy
impl UnsafeUnpin for RoomRuntimePolicy
impl UnwindSafe for RoomRuntimePolicy
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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