#[derive(Debug, Clone)]
pub struct ChatMessageEvent {
pub message: String,
pub cancelled: bool,
}
crate::instant_cancellable_event!(ChatMessageEvent);
#[derive(Debug, Clone)]
pub struct CommandEvent {
pub command: String,
pub cancelled: bool,
}
crate::instant_cancellable_event!(CommandEvent);
#[cfg(test)]
mod tests {
use crate::events::{BusKind, EventRouting};
use super::*;
#[test]
fn event_routing() {
assert_eq!(ChatMessageEvent::BUS, BusKind::Instant);
assert_eq!(CommandEvent::BUS, BusKind::Instant);
}
}