diff options
author | ilyes-ced <109927235+ilyes-ced@users.noreply.github.com> | 2023-12-08 08:33:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 16:33:10 +0800 |
commit | 5648be6f11bd93a772cc6b4a04915c095577ea3d (patch) | |
tree | bc5e4ada9bb3ae9f3d07ea5f18e0c52e30383504 /src/display/ui_state.rs | |
parent | 0a89c5aba518294b1fdcaa77bdbc15c314b1651d (diff) |
Show interface names (#340)
* added interface names
* some fixes
* Set interface name in UI only once
* Code style
* Add changelog entry
---------
Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
Diffstat (limited to 'src/display/ui_state.rs')
-rw-r--r-- | src/display/ui_state.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/display/ui_state.rs b/src/display/ui_state.rs index 1295ef9..37ff639 100644 --- a/src/display/ui_state.rs +++ b/src/display/ui_state.rs @@ -79,6 +79,8 @@ pub struct UtilizationData { #[derive(Default)] pub struct UIState { + /// The interface name in single-interface mode. `None` means all interfaces. + pub interface_name: Option<String>, pub processes: Vec<(String, NetworkData)>, pub remote_addresses: Vec<(IpAddr, NetworkData)>, pub connections: Vec<(Connection, ConnectionData)>, |