refactor nm state

This commit is contained in:
Ashley Wulber 2023-01-10 13:19:59 -05:00
parent e43fe95b99
commit d35732d120
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 84 additions and 88 deletions

View file

@ -539,4 +539,10 @@ impl NetworkManagerState {
_self.known_access_points = known_access_points;
Ok(_self)
}
pub fn clear(&mut self) {
self.active_conns = Vec::new();
self.known_access_points = Vec::new();
self.wireless_access_points = Vec::new();
}
}