Struct naia_server::UserMut
source · [−]pub struct UserMut<'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> UserMut<'s, P, E, C>
impl<'s, P: Protocolize, E: Copy + Eq + Hash + Send + Sync, C: ChannelIndex> UserMut<'s, P, E, C>
pub fn new(server: &'s mut Server<P, E, C>, 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, C> !RefUnwindSafe for UserMut<'s, P, E, C>
impl<'s, P, E, C> Send for UserMut<'s, P, E, C>
impl<'s, P, E, C> Sync for UserMut<'s, P, E, C>
impl<'s, P, E, C> Unpin for UserMut<'s, P, E, C>
impl<'s, P, E, C> !UnwindSafe for UserMut<'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