From 4e8d821c905b818698bdaff5c0f2622d14ac74d7 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sat, 12 Apr 2025 10:16:02 +0800 Subject: 调整部分 mod、fn 为 Public MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/lib.rs | 8 ++++---- core/src/phantom_link_server.rs | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/src/lib.rs b/core/src/lib.rs index 5712070..4988f50 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -1,4 +1,4 @@ -mod phantom_link_server; -mod gamepad_layouts; -mod player; -mod message; \ No newline at end of file +pub mod phantom_link_server; +pub mod gamepad_layouts; +pub mod player; +pub mod message; \ No newline at end of file diff --git a/core/src/phantom_link_server.rs b/core/src/phantom_link_server.rs index 22ba92a..6dcbdeb 100644 --- a/core/src/phantom_link_server.rs +++ b/core/src/phantom_link_server.rs @@ -58,7 +58,7 @@ impl Default for PLServer { impl PLServer { /// # 使用 Xbox 布局部署服务器 /// 创建一个使用 Xbox 布局的服务器 - fn xbox_layout() -> Self { + pub fn xbox_layout() -> Self { PLServer { server_name: "Xbox Layout", port: 8916, @@ -69,13 +69,13 @@ impl PLServer { /// # 开始监听服务器 /// self : 服务器 /// event : 事件 - fn start_listening(&self, event : impl PLServerEvent) { + pub fn start_listening(&self, event : impl PLServerEvent) { } /// # 停止监听服务器 /// self : 服务器 - fn stop_listening(&self) { + pub fn stop_listening(&self) { } } \ No newline at end of file -- cgit