move lan-mouse protocol into separate crate

This commit is contained in:
Ferdinand Schober
2024-08-06 15:48:33 +02:00
parent fe06ca1fae
commit 1e1476d58e
24 changed files with 437 additions and 530 deletions

View File

@@ -4,11 +4,7 @@ use std::task::{Context, Poll};
use async_trait::async_trait;
use futures_core::Stream;
use input_event::Event;
use crate::CaptureError;
use super::{Capture, CaptureHandle, Position};
use super::{Capture, CaptureError, CaptureEvent, CaptureHandle, Position};
pub struct DummyInputCapture {}
@@ -44,7 +40,7 @@ impl Capture for DummyInputCapture {
}
impl Stream for DummyInputCapture {
type Item = Result<(CaptureHandle, Event), CaptureError>;
type Item = Result<(CaptureHandle, CaptureEvent), CaptureError>;
fn poll_next(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
Poll::Pending