pub(super) struct PublishedSources {
records: BTreeMap<PublishedSourceId, PublishedSource>,
id_by_key: BTreeMap<SourceKey, PublishedSourceId>,
ids_by_owner: BTreeMap<UserId, BTreeSet<PublishedSourceId>>,
id_by_transport: BTreeMap<TransportMediaId, PublishedSourceId>,
next_id: u64,
next_encoding_id: u64,
}Fields§
§records: BTreeMap<PublishedSourceId, PublishedSource>§id_by_key: BTreeMap<SourceKey, PublishedSourceId>§ids_by_owner: BTreeMap<UserId, BTreeSet<PublishedSourceId>>§id_by_transport: BTreeMap<TransportMediaId, PublishedSourceId>§next_id: u64§next_encoding_id: u64Implementations§
Source§impl PublishedSources
impl PublishedSources
pub(super) fn allocate_id(&mut self) -> PublishedSourceId
pub(super) fn allocate_encoding_id(&mut self) -> SourceEncodingId
pub(super) fn publication_count(&self) -> usize
pub(super) fn iter(&self) -> impl Iterator<Item = &PublishedSource>
pub(super) fn source(&self, id: PublishedSourceId) -> Option<&PublishedSource>
pub(super) fn source_mut( &mut self, id: PublishedSourceId, ) -> Option<&mut PublishedSource>
pub(super) fn source_for_transport( &self, media: TransportMediaId, ) -> Option<&PublishedSource>
pub(super) fn id_for_owner_stream( &self, owner: &UserId, stream: &UserStreamId, ) -> Option<PublishedSourceId>
pub(super) fn owner_has_promotable_source_in_group( &self, owner: &UserId, group: ActiveSpeakerGroup, ) -> bool
pub(super) fn insert(&mut self, source: PublishedSource)
pub(super) fn ids_for_owner( &self, user: &UserId, ) -> impl Iterator<Item = PublishedSourceId> + '_
pub(super) fn remove( &mut self, id: PublishedSourceId, ) -> Option<PublishedSource>
Trait Implementations§
Source§impl Debug for PublishedSources
impl Debug for PublishedSources
Auto Trait Implementations§
impl Freeze for PublishedSources
impl RefUnwindSafe for PublishedSources
impl Send for PublishedSources
impl Sync for PublishedSources
impl Unpin for PublishedSources
impl UnsafeUnpin for PublishedSources
impl UnwindSafe for PublishedSources
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