1
0
Fork 0
forked from wry/wry
wry/src/tasks.rs
2022-06-01 21:46:31 +02:00

26 lines
596 B
Rust

mod backend;
mod connector;
mod drmdev;
mod hardware_cursor;
mod idle;
mod input_device;
mod slow_clients;
use {
crate::{
state::State,
tasks::{backend::BackendEventHandler, slow_clients::SlowClientHandler},
},
std::rc::Rc,
};
pub use {hardware_cursor::handle_hardware_cursor_tick, idle::idle};
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;
}