mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-09 22:21:29 +03:00
vdi: new message loop
This commit is contained in:
@@ -1 +1,11 @@
|
||||
use hbb_common::{message_proto::*, tokio, ResultType};
|
||||
pub use tokio::sync::{mpsc, Mutex};
|
||||
pub struct Connection {
|
||||
pub tx: mpsc::UnboundedSender<Message>,
|
||||
}
|
||||
|
||||
impl Connection {
|
||||
pub async fn on_message(&mut self, message: Message) -> ResultType<bool> {
|
||||
Ok(true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user