use tokio::sync::oneshot; use kordophone_db::models::Conversation; pub type Reply = oneshot::Sender; pub enum Event { /// Get the version of the daemon. GetVersion(Reply), /// Asynchronous event for syncing all conversations with the server. SyncAllConversations(Reply<()>), /// Returns all known conversations from the database. GetAllConversations(Reply>), }