pub(crate) struct RoomDirectory {
by_uuid: BTreeMap<String, RoomDirectoryEntry>,
uuid_by_instance: BTreeMap<RoomInstanceId, String>,
uuid_by_issuer: BTreeMap<String, String>,
}Fields§
§by_uuid: BTreeMap<String, RoomDirectoryEntry>§uuid_by_instance: BTreeMap<RoomInstanceId, String>§uuid_by_issuer: BTreeMap<String, String>Implementations§
Source§impl RoomDirectory
impl RoomDirectory
pub(crate) fn get_by_uuid(&self, uuid: &str) -> Option<Arc<Room>>
pub(crate) fn entry(&self, uuid: &str) -> Option<RoomDirectoryEntry>
pub(crate) fn entry_by_issuer(&self, issuer: &str) -> Option<RoomDirectoryEntry>
pub(crate) fn entry_by_instance_id( &self, room_instance_id: RoomInstanceId, ) -> Option<RoomDirectoryEntry>
pub(crate) fn entries(&self) -> Vec<RoomDirectoryEntry>
pub(crate) fn rooms(&self) -> Vec<Arc<Room>>
pub(crate) fn insert( &mut self, room: Arc<Room>, remote_address: Option<&str>, reservation_ttl: Duration, )
pub(crate) fn contains_current(&self, uuid: &str, room: &Arc<Room>) -> bool
pub(crate) fn remove_if_current(&mut self, uuid: &str, room: &Arc<Room>)
Trait Implementations§
Source§impl Debug for RoomDirectory
impl Debug for RoomDirectory
Source§impl Default for RoomDirectory
impl Default for RoomDirectory
Source§fn default() -> RoomDirectory
fn default() -> RoomDirectory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RoomDirectory
impl !RefUnwindSafe for RoomDirectory
impl Send for RoomDirectory
impl Sync for RoomDirectory
impl Unpin for RoomDirectory
impl UnsafeUnpin for RoomDirectory
impl !UnwindSafe for RoomDirectory
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