pub struct RoomRef<'s, E: Copy + Eq + Hash + Send + Sync> { /* private fields */ }Implementations§
Source§impl<'s, E: Copy + Eq + Hash + Send + Sync> RoomRef<'s, E>
impl<'s, E: Copy + Eq + Hash + Send + Sync> RoomRef<'s, E>
pub fn new(server: &'s Server<E>, key: &RoomKey) -> Self
pub fn key(&self) -> RoomKey
pub fn has_user(&self, user_key: &UserKey) -> bool
pub fn users_count(&self) -> usize
Sourcepub fn user_keys(&self) -> impl Iterator<Item = &UserKey>
pub fn user_keys(&self) -> impl Iterator<Item = &UserKey>
Returns an iterator of the UserKey for Users that belong in the [Room]
pub fn has_entity(&self, entity: &E) -> bool
pub fn entities_count(&self) -> usize
pub fn entities(&self) -> impl Iterator<Item = &E>
Auto Trait Implementations§
impl<'s, E> Freeze for RoomRef<'s, E>
impl<'s, E> !RefUnwindSafe for RoomRef<'s, E>
impl<'s, E> Send for RoomRef<'s, E>
impl<'s, E> Sync for RoomRef<'s, E>
impl<'s, E> Unpin for RoomRef<'s, E>
impl<'s, E> !UnwindSafe for RoomRef<'s, E>
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