connection things

This commit is contained in:
Ferdinand Schober
2024-09-06 13:21:44 +02:00
parent 28e4895418
commit e4a7f0b4fc
4 changed files with 125 additions and 45 deletions

17
src/capture.rs Normal file
View 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)
}
}
}