Struct naia_server::UserMut
source · [−]pub struct UserMut<'s, P: ProtocolType, E: Copy + Eq + Hash> { /* private fields */ }Implementations
sourceimpl<'s, P: ProtocolType, E: Copy + Eq + Hash> UserMut<'s, P, E>
impl<'s, P: ProtocolType, E: Copy + Eq + Hash> UserMut<'s, P, E>
pub fn new(server: &'s mut Server<P, 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
Auto Trait Implementations
impl<'s, P, E> !RefUnwindSafe for UserMut<'s, P, E>
impl<'s, P, E> Send for UserMut<'s, P, E> where
E: Send,
impl<'s, P, E> Sync for UserMut<'s, P, E> where
E: Sync,
impl<'s, P, E> Unpin for UserMut<'s, P, E>
impl<'s, P, E> !UnwindSafe for UserMut<'s, P, E>
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