Struct naia_server::RoomRef
source · 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]