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

@@ -24,6 +24,16 @@ impl ops::Not for Color {
}
}
impl From<Color> for bool {
fn from(color: Color) -> bool {
match color {
Color::Red => true,
Color::Yellow => false,
Color::None => panic!("Cannot convert Color::None to bool"),
}
}
}
#[derive(Clone)]
pub struct Client {
pub username: String,