adapt windows + macos error types

This commit is contained in:
Ferdinand Schober
2024-06-28 23:31:42 +02:00
parent 16df8e9693
commit 1db43c4751
2 changed files with 27 additions and 3 deletions

View File

@@ -1,16 +1,17 @@
use crate::capture::InputCapture;
use crate::client::{ClientEvent, ClientHandle};
use crate::event::Event;
use anyhow::{anyhow, Result};
use anyhow::Result;
use futures_core::Stream;
use std::task::{Context, Poll};
use std::{io, pin::Pin};
use crate::capture::error::MacOSInputCaptureCreationError;
pub struct MacOSInputCapture;
impl MacOSInputCapture {
pub fn new() -> Result<Self> {
Err(anyhow!("not yet implemented"))
pub fn new() -> std::result::Result<Self, MacOSInputCaptureCreationError> {
Err(MacOSInputCaptureCreationError::NotImplemented)
}
}