nikau 0.3.3

Linux network KVM for Wayland/X11/Console
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod gadget;
pub mod uinput;

use crate::msgs::event;
use anyhow::Result;
use async_trait::async_trait;

/// Name prefix to use on nikau-created devices that should not be consumed by nikau
pub const VIRTUAL_DEVICE_NAME_PREFIX: &str = "nikau virtual";

/// Trait for watching the addition and removal of devices from the machine
#[async_trait]
pub trait OutputHandler {
    async fn write(&mut self, event: Vec<event::InputEvent>) -> Result<()>;
}