move server to src/

This commit is contained in:
Ferdinand Schober
2023-12-03 22:37:41 +01:00
parent 61b23c910b
commit b01f7c2793
4 changed files with 3 additions and 5 deletions

View File

@@ -1,7 +1,5 @@
use std::{error::Error, fmt::{self, Display}};
pub mod server;
#[derive(Debug, Clone, Copy)]
pub enum PointerEvent {
Motion {

View File

@@ -2,6 +2,7 @@ pub mod client;
pub mod config;
pub mod dns;
pub mod event;
pub mod server;
pub mod consumer;
pub mod producer;

View File

@@ -3,7 +3,7 @@ use std::{process, error::Error};
use env_logger::Env;
use lan_mouse::{
consumer, producer,
config::{Config, Frontend::{Cli, Gtk}}, event::server::Server,
config::{Config, Frontend::{Cli, Gtk}}, server::Server,
frontend::{FrontendListener, cli},
};

View File

@@ -12,8 +12,7 @@ use tokio::net::TcpStream;
use std::{net::SocketAddr, io::ErrorKind};
use crate::{client::{ClientEvent, ClientManager, Position, ClientHandle}, consumer::EventConsumer, producer::EventProducer, frontend::{FrontendEvent, FrontendListener, FrontendNotify, self}, dns::{self, DnsResolver}};
// use crate::event::PointerEvent;
use super::Event;
use crate::event::Event;
/// keeps track of state to prevent a feedback loop
/// of continuously sending and receiving the same event.