[mio] 启动成功输出
This commit is contained in:
@@ -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) {}
|
||||
/// 连接
|
||||
|
||||
@@ -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 _);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user