mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-20 19:50:55 +03:00
connection things
This commit is contained in:
17
src/capture.rs
Normal file
17
src/capture.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use crate::server::Server;
|
||||
|
||||
pub(crate) struct Capture {
|
||||
server: Server,
|
||||
}
|
||||
|
||||
impl Capture {
|
||||
pub(crate) fn new(server: Server) -> Self {
|
||||
Self { server }
|
||||
}
|
||||
|
||||
pub(crate) async fn run(&mut self, backend: input_capture::Backend) {
|
||||
loop {
|
||||
if let Err(e) = do_capture(backend)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user