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:
@@ -1,6 +1,5 @@
|
||||
use {Channel, User};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum Event {
|
||||
Message { sender: User, channel: Option<Channel>, content: String },
|
||||
Join { channel: Channel },
|
||||
|
Reference in New Issue
Block a user