[mio] 启动成功输出

This commit is contained in:
lubeilin
2024-03-06 22:53:56 +08:00
parent c0e930a3ef
commit ae63ce80b5
4 changed files with 9 additions and 0 deletions
+3
View File
@@ -182,6 +182,9 @@ impl Into<u8> for ErrorType {
}
pub trait VntCallback: Clone + Send + Sync + 'static {
/// 启动成功
fn success(&self) {}
/// 创建网卡的信息
fn create_tun(&self, _info: DeviceInfo) {}
/// 连接
+1
View File
@@ -307,6 +307,7 @@ impl<Call: VntCallback> ServerPacketHandler<Call> {
guard.push((dest, mask));
}
}
self.callback.success();
}
self.set_device_info_list(response.device_info_list, response.epoch as _);
}