pub struct UserMut<'s, E: Copy + Eq + Hash + Send + Sync> { /* private fields */ }Implementations§
Source§impl<'s, E: Copy + Eq + Hash + Send + Sync> UserMut<'s, E>
impl<'s, E: Copy + Eq + Hash + Send + Sync> UserMut<'s, E>
pub fn new(server: &'s mut Server<E>, key: &UserKey) -> Self
pub fn key(&self) -> UserKey
pub fn address(&self) -> SocketAddr
pub fn disconnect(&mut self)
pub fn enter_room(&mut self, room_key: &RoomKey) -> &mut Self
pub fn leave_room(&mut self, room_key: &RoomKey) -> &mut Self
pub fn room_count(&self) -> usize
Auto Trait Implementations§
impl<'s, E> Freeze for UserMut<'s, E>
impl<'s, E> !RefUnwindSafe for UserMut<'s, E>
impl<'s, E> Send for UserMut<'s, E>
impl<'s, E> Sync for UserMut<'s, E>
impl<'s, E> Unpin for UserMut<'s, E>
impl<'s, E> !UnwindSafe for UserMut<'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