Expand description
🛸 信令路由(RPC)
§介绍
主页 Homepage
crates官方仓库 https://crates.io/crates/lwleen
RPC 是 Remote Procedure Call(远程过程调用),用于组件间数据通信
§信令路由
可扩展,自定义服务器
https://docs.rs/crate/lwleen-rpc/latest/source/src/mod_rpc.rs
Re-exports§
pub use anyhow;pub use serde;pub use serde_json;pub use futures;pub use futures_lite;pub use async_channel;pub use crossbeam_channel;pub use chrono;pub use uuid;pub use lwleen_macro;
Modules§
- macros
- 🧊宏
- mod_
demo - 🔥
示例 - mod_
pool - 来自开源库 rusty_pool
Apache-2.0 - mod_rpc
- 🛸
信令路由 - mod_
state - 来自开源库 tauri
Apache-2.0 OR MIT - mod_
timer - 来自开源库 futures-timeout
Apache-2.0 OR MIT - mod_
tool - ✅公用的类型
- prelude
- prelude
预接口
Macros§
- anyhow_
Err信令 - anyhow_
Ok信令 - cfg_if
- 来自开源仓库 cfg-ifhttps://docs.rs/cfg-if/latest/src/cfg_if/lib.rs.html
- cfg_
多行特性 - core发布信令任务
- 快速生成一个信令任务
- impl信令特征
- 所有
信令表必须实现此特征 - join_
path - std::path::PathBuf .push()
- match取出
- 从 枚举enum 取出值