daemon: implement solution for background sync
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
use tokio::sync::oneshot;
|
||||
use kordophone_db::models::Conversation;
|
||||
|
||||
pub type Reply<T: Send> = oneshot::Sender<T>;
|
||||
pub type Reply<T> = oneshot::Sender<T>;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Event {
|
||||
/// Get the version of the daemon.
|
||||
GetVersion(Reply<String>),
|
||||
|
||||
Reference in New Issue
Block a user