wayclip-daemon 0.2.0

Recording and management of Wayclip daemon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::linux::DaemonStatus;
use tokio::sync::oneshot;
use wayclip_core::models::error::WayclipError;

/// Instead of holding a direct reference of the Daemon, we will just manage IpcCommand
pub enum IpcCommand {
    GetStatus {
        responder: oneshot::Sender<DaemonStatus>,
    },
    SaveClip {
        custom_name: Option<String>,
        responder: oneshot::Sender<Result<String, WayclipError>>,
    },
    Shutdown {
        responder: oneshot::Sender<Result<(), WayclipError>>,
    },
}