Struct naia_server::RoomMut
source · [−]pub struct RoomMut<'s, P: Protocolize, E: Copy + Eq + Hash + Send + Sync, C: ChannelIndex> { /* private fields */ }Implementations
sourceimpl<'s, P: Protocolize, E: Copy + Eq + Hash + Send + Sync, C: ChannelIndex> RoomMut<'s, P, E, C>
impl<'s, P: Protocolize, E: Copy + Eq + Hash + Send + Sync, C: ChannelIndex> RoomMut<'s, P, E, C>
pub fn new(server: &'s mut Server<P, E, C>, 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
pub fn has_entity(&self, entity: &E) -> bool
pub fn add_entity(&mut self, entity: &E) -> &mut Self
pub fn remove_entity(&mut self, entity: &E) -> &mut Self
pub fn entities_count(&self) -> usize
Auto Trait Implementations
impl<'s, P, E, C> !RefUnwindSafe for RoomMut<'s, P, E, C>
impl<'s, P, E, C> Send for RoomMut<'s, P, E, C>
impl<'s, P, E, C> Sync for RoomMut<'s, P, E, C>
impl<'s, P, E, C> Unpin for RoomMut<'s, P, E, C>
impl<'s, P, E, C> !UnwindSafe for RoomMut<'s, P, E, C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more