mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-27 11:03:20 +03:00
lan discovery in socket_cs
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
12
libs/socket_cs/src/lib.rs
Normal file
12
libs/socket_cs/src/lib.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use async_trait::async_trait;
|
||||
pub use hbb_common::ResultType;
|
||||
pub mod discovery;
|
||||
pub mod udp;
|
||||
|
||||
const CMD_TOKEN: u8 = '\n' as u8;
|
||||
|
||||
/// Use tower::Service may be better ?
|
||||
#[async_trait]
|
||||
pub trait Handler<Request>: Send + Sync {
|
||||
async fn call(&self, request: Request) -> ResultType<()>;
|
||||
}
|
||||
Reference in New Issue
Block a user