diff options
| -rw-r--r-- | core/src/lib.rs | 8 | ||||
| -rw-r--r-- | 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 |
