feat: tolerate disconnects/allow for soft reconnects

This commit is contained in:
2026-02-19 15:55:56 -05:00
Unverified
parent aef1585764
commit c754b2ec72
7 changed files with 299 additions and 63 deletions

View File

@@ -16,6 +16,8 @@ pub trait Tournament {
async fn start(&mut self, server: &Server);
async fn cancel(&mut self, server: &Server);
fn inform_winner(&mut self, winner: SocketAddr, is_tie: bool);
fn inform_reconnect(&mut self, old_addr: SocketAddr, new_addr: SocketAddr);
fn contains_player(&self, addr: SocketAddr) -> bool;
fn is_completed(&self) -> bool;
fn get_type(&self) -> String;
}