mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-03 15:01:27 +03:00
30 lines
686 B
Rust
30 lines
686 B
Rust
use crate::client::{ClientEvent, ClientHandle};
|
|
use crate::event::Event;
|
|
use crate::producer::EventProducer;
|
|
use anyhow::{anyhow, Result};
|
|
use futures_core::Stream;
|
|
use std::task::{Context, Poll};
|
|
use std::{io, pin::Pin};
|
|
|
|
pub struct MacOSProducer;
|
|
|
|
impl MacOSProducer {
|
|
pub fn new() -> Result<Self> {
|
|
Err(anyhow!("not yet implemented"))
|
|
}
|
|
}
|
|
|
|
impl Stream for MacOSProducer {
|
|
type Item = io::Result<(ClientHandle, Event)>;
|
|
|
|
fn poll_next(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
|
|
Poll::Pending
|
|
}
|
|
}
|
|
|
|
impl EventProducer for MacOSProducer {
|
|
fn notify(&mut self, _event: ClientEvent) {}
|
|
|
|
fn release(&mut self) {}
|
|
}
|