Struct naia_server::RoomMut
source · pub struct RoomMut<'s, E: Copy + Eq + Hash + Send + Sync> { /* private fields */ }Implementations§
source§impl<'s, E: Copy + Eq + Hash + Send + Sync> RoomMut<'s, E>
impl<'s, E: Copy + Eq + Hash + Send + Sync> RoomMut<'s, E>
pub fn new(server: &'s mut Server<E>, key: &RoomKey) -> Self
pub fn key(&self) -> RoomKey
pub fn destroy(&mut self)
pub fn has_user(&self, user_key: &UserKey) -> bool
pub fn add_user(&mut self, user_key: &UserKey) -> &mut Self
pub fn remove_user(&mut self, user_key: &UserKey) -> &mut Self
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]