feat: tolerate disconnects/allow for soft reconnects
This commit is contained in:
10
src/types.rs
10
src/types.rs
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user