[mio] 简化校验

This commit is contained in:
lubeilin
2024-03-01 21:46:48 +08:00
parent 7bc4203deb
commit 1b1663c87e
+9
View File
@@ -110,6 +110,15 @@ pub enum ConnectStatus {
Connected,
}
impl ConnectStatus {
pub fn online(&self) -> bool {
self == &ConnectStatus::Connected
}
pub fn offline(&self) -> bool {
self == &ConnectStatus::Connecting
}
}
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct CurrentDeviceInfo {
//本机虚拟IP