mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-11 23:30:55 +03:00
27 lines
599 B
Rust
27 lines
599 B
Rust
use crate::{
|
|
client::{ClientEvent, ClientHandle},
|
|
consumer::EventConsumer,
|
|
event::Event,
|
|
};
|
|
use async_trait::async_trait;
|
|
|
|
#[derive(Default)]
|
|
pub struct DummyConsumer;
|
|
|
|
impl DummyConsumer {
|
|
pub fn new() -> Self {
|
|
Self {}
|
|
}
|
|
}
|
|
|
|
#[async_trait]
|
|
impl EventConsumer for DummyConsumer {
|
|
async fn consume(&mut self, event: Event, client_handle: ClientHandle) {
|
|
log::info!("received event: ({client_handle}) {event}");
|
|
}
|
|
async fn notify(&mut self, client_event: ClientEvent) {
|
|
log::info!("{client_event:?}");
|
|
}
|
|
async fn destroy(&mut self) {}
|
|
}
|