refactor nm state
This commit is contained in:
parent
e43fe95b99
commit
d35732d120
3 changed files with 84 additions and 88 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue