pub(super) struct SpeakerPlan {
pub(super) admitted_audio: BTreeSet<PublishedSourceId>,
pub(super) limited_audio: BTreeSet<PublishedSourceId>,
pub(super) featured_source_owners: BTreeSet<UserId>,
pub(super) rank_by_owner: BTreeMap<UserId, usize>,
featured_user: Option<UserId>,
}Fields§
§admitted_audio: BTreeSet<PublishedSourceId>Audio sources within the room’s active speaker limit.
limited_audio: BTreeSet<PublishedSourceId>Observed audio sources beyond the room’s active speaker limit.
featured_source_owners: BTreeSet<UserId>Owners whose video layouts resolve as active speakers.
rank_by_owner: BTreeMap<UserId, usize>§featured_user: Option<UserId>Implementations§
Source§impl SpeakerPlan
impl SpeakerPlan
pub(super) fn new(facts: &PolicyFacts<'_>) -> Self
Sourcepub(super) fn featured(&self, receiver: &ReceiverFacts<'_>) -> Option<bool>
pub(super) fn featured(&self, receiver: &ReceiverFacts<'_>) -> Option<bool>
Features the top speaker and clears the flag of everyone else. Without a speaker, flags already set clear and unset flags stay unset.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpeakerPlan
impl RefUnwindSafe for SpeakerPlan
impl Send for SpeakerPlan
impl Sync for SpeakerPlan
impl Unpin for SpeakerPlan
impl UnsafeUnpin for SpeakerPlan
impl UnwindSafe for SpeakerPlan
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