send/receive Arc<Event> instead of Event so we don't have to clone objects all over the place. This might also enable us to be a bit more flexible with what we send with Events, and might simplify things elsewhere.

This commit is contained in:
Adrian Malacoda
2017-02-19 02:55:30 -06:00
parent 1a69349557
commit 84d2921f8f
7 changed files with 35 additions and 32 deletions

View File

@@ -1,6 +1,5 @@
use {Channel, User};
#[derive(Clone)]
pub enum Event {
Message { sender: User, channel: Option<Channel>, content: String },
Join { channel: Channel },