mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
use official async trait (#6765)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
1 parent
6953efc2d8
commit
e873188775
6 files changed
+3
-9
No files matched your search
@@ -6,7 +6,6 @@ use std::{
|
||||
sync::{mpsc, Arc, Mutex, RwLock},
|
||||
};
|
||||
|
||||
pub use async_trait::async_trait;
|
||||
use bytes::Bytes;
|
||||
#[cfg(not(any(target_os = "android", target_os = "linux")))]
|
||||
use cpal::{
|
||||
@@ -2649,7 +2648,6 @@ async fn send_switch_login_request(
|
||||
}
|
||||
|
||||
/// Interface for client to send data and commands.
|
||||
#[async_trait]
|
||||
pub trait Interface: Send + Clone + 'static + Sized {
|
||||
/// Send message data to remote peer.
|
||||
fn send(&self, data: Data);
|
||||
|
||||
Reference in new issue
Block a user