[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
@@ -7,6 +7,9 @@ use vnt::{DeviceInfo, ErrorInfo, HandshakeInfo, RegisterInfo, VntCallback};
pub struct VntHandler {}
impl VntCallback for VntHandler {
fn success(&self) {
println!(" ====== Connect Successfully ====== ")
}
fn create_tun(&self, info: DeviceInfo) {
println!("create_tun {}", info)
}