feat: server 监听端点参数化,支持 Unix 与 TCP 两种传输

This commit is contained in:
2026-10-11 12:48:23 +00:00
parent 6fb57e5152
commit d6fa71759b
9 changed files with 244 additions and 135 deletions
+3 -3
View File
@@ -7,8 +7,8 @@
//! 构造面(bind / connect)不含在本 crate:调用方先用 std 原语构造句柄,再包进枚举。
//! 零外部依赖,纯 `std::net` 与 `std::os::unix::net`。
/// 传输枚举层:`Conn` 与 `Listener` 及统一操作。
/// 传输枚举层:`Conn`、`Listener` 与 `Endpoint` 及统一操作。
pub mod transport;
/// 重导出 `transport` 模块的 `Conn` 与 `Listener` 枚举。
pub use transport::{Conn, Listener};
/// 重导出 `transport` 模块的 `Conn`、`Listener` 与 `Endpoint` 枚举。
pub use transport::{Conn, Endpoint, Listener};