autocommit 2022-01-25 16:45:44 CET
This commit is contained in:
parent
0336bf3bde
commit
c340df0d08
59 changed files with 3085 additions and 1710 deletions
19
src/tasks/mod.rs
Normal file
19
src/tasks/mod.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
mod backend;
|
||||
mod output;
|
||||
mod seat;
|
||||
mod slow_clients;
|
||||
|
||||
use crate::tasks::backend::BackendEventHandler;
|
||||
use crate::tasks::slow_clients::SlowClientHandler;
|
||||
use crate::State;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub async fn handle_backend_events(state: Rc<State>) {
|
||||
let mut beh = BackendEventHandler { state };
|
||||
beh.handle_events().await;
|
||||
}
|
||||
|
||||
pub async fn handle_slow_clients(state: Rc<State>) {
|
||||
let mut sch = SlowClientHandler { state };
|
||||
sch.handle_events().await;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue