impl game over

This commit is contained in:
bel
2020-05-06 08:43:56 -06:00
parent 8d005065f6
commit e0bff631e0
5 changed files with 186 additions and 37 deletions

View File

@@ -1,6 +1,8 @@
use super::event;
pub trait Room {
use std::fmt;
pub trait Room: fmt::Debug {
fn rollback(&mut self, since: String);
fn sync(&mut self) -> Vec<event::Event>;
fn send(&mut self, message: String) -> Result<String, &str>;