pub struct ConnectionManager<S = TcpStream>{ /* private fields */ }Implementations§
Source§impl<S> ConnectionManager<S>
impl<S> ConnectionManager<S>
pub fn new(lobby_tx: Sender<LobbyEvent>, max_client_connections: usize) -> Self
pub fn event_tx(&self) -> Sender<ClientEvent<S>>
pub fn command_tx(&self) -> Sender<ManagerCommand>
pub async fn run(self)
Auto Trait Implementations§
impl<S> Freeze for ConnectionManager<S>
impl<S> RefUnwindSafe for ConnectionManager<S>
impl<S> Send for ConnectionManager<S>
impl<S> Sync for ConnectionManager<S>
impl<S> Unpin for ConnectionManager<S>
impl<S> UnsafeUnpin for ConnectionManager<S>
impl<S> UnwindSafe for ConnectionManager<S>
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