pub(super) struct SourcePolicySnapshot<'a> {Show 14 fields
pub(super) routes: Vec<ConsumerRouteView<'a>>,
pub(super) receiver_bwe_targets: BTreeMap<UserId, ReceiverBweTargetUpdate>,
pub(super) receiver_bandwidth_by_connection: BTreeMap<ConnectionId, Bitrate>,
pub(super) source_bitrate_by_media: BTreeMap<TransportMediaId, Bitrate>,
pub(super) active_speaker_media_ids: BTreeSet<TransportMediaId>,
pub(super) admitted_audio_media_ids: BTreeSet<TransportMediaId>,
pub(super) deaf_receiver_connection_ids: BTreeSet<ConnectionId>,
pub(super) featured_source_user_ids: BTreeSet<UserId>,
pub(super) active_speaker_rank_by_user: BTreeMap<UserId, usize>,
pub(super) featured_user_updates: Vec<FeaturedUserUpdate>,
pub(super) user_count: usize,
pub(super) media_limits: RoomMediaLimits,
pub(super) video_adaptation_tuning: VideoAdaptationTuning,
pub(super) audio_reserve_by_connection: BTreeMap<ConnectionId, Bitrate>,
}Fields§
§routes: Vec<ConsumerRouteView<'a>>§receiver_bwe_targets: BTreeMap<UserId, ReceiverBweTargetUpdate>§receiver_bandwidth_by_connection: BTreeMap<ConnectionId, Bitrate>§source_bitrate_by_media: BTreeMap<TransportMediaId, Bitrate>§active_speaker_media_ids: BTreeSet<TransportMediaId>§admitted_audio_media_ids: BTreeSet<TransportMediaId>§deaf_receiver_connection_ids: BTreeSet<ConnectionId>§featured_source_user_ids: BTreeSet<UserId>§active_speaker_rank_by_user: BTreeMap<UserId, usize>§featured_user_updates: Vec<FeaturedUserUpdate>§user_count: usize§media_limits: RoomMediaLimits§video_adaptation_tuning: VideoAdaptationTuning§audio_reserve_by_connection: BTreeMap<ConnectionId, Bitrate>Implementations§
Source§impl<'a> SourcePolicySnapshot<'a>
impl<'a> SourcePolicySnapshot<'a>
pub(super) fn from_state( room: &'a RoomState, active_speaker_sources: &[ActiveSpeakerSource], receiver_bandwidth_snapshot: &ReceiverBandwidthSnapshot, source_bitrate_snapshot: &TransportBitrateSnapshot, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SourcePolicySnapshot<'a>
impl<'a> RefUnwindSafe for SourcePolicySnapshot<'a>
impl<'a> Send for SourcePolicySnapshot<'a>
impl<'a> Sync for SourcePolicySnapshot<'a>
impl<'a> Unpin for SourcePolicySnapshot<'a>
impl<'a> UnsafeUnpin for SourcePolicySnapshot<'a>
impl<'a> UnwindSafe for SourcePolicySnapshot<'a>
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
§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