pub struct RoomState {
pub members: BTreeMap<EndpointId, RoomMember>,
}Expand description
Who is in a room, and what each member publishes into it.
Fields§
§members: BTreeMap<EndpointId, RoomMember>Every other member, by endpoint id. This node is not among them.
Implementations§
Source§impl RoomState
impl RoomState
Sourcepub fn member_name(&self, id: EndpointId) -> String
pub fn member_name(&self, id: EndpointId) -> String
Returns the name member id goes by: its display name, or its short endpoint id.
The short id stands in for a member that announced no name, and for an id that is not a member, such as one that just left.
Trait Implementations§
impl Eq for RoomState
impl StructuralPartialEq for RoomState
Auto Trait Implementations§
impl Freeze for RoomState
impl RefUnwindSafe for RoomState
impl Send for RoomState
impl Sync for RoomState
impl Unpin for RoomState
impl UnsafeUnpin for RoomState
impl UnwindSafe for RoomState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.