phoebe/phoebe/src/service.rs

8 lines
192 B
Rust
Raw Normal View History

2022-04-08 16:52:59 +00:00
use mid_chat::event::ChatEvent;
#[async_trait::async_trait]
pub trait Service {
fn get_service_tag(&self) -> &'static str;
async fn handle_chat_event(&mut self, event: &ChatEvent);
}