feat: 客户端与探活三函数按 endpoint 形态分支 Unix 与 TCP 两臂

This commit is contained in:
2026-10-11 13:07:29 +00:00
parent d6fa71759b
commit 9d2790e036
9 changed files with 149 additions and 78 deletions
+7
View File
@@ -62,6 +62,13 @@ impl Endpoint {
}
}
impl std::fmt::Display for Endpoint {
/// 端点文本形态:Unix 臂为路径字符串,TCP 臂为 host:port 字符串。
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str(&self.describe())
}
}
impl Listener {
/// 设置监听者非阻塞模式。
///