diff options
author | Mustafa Salih <37256744+MustafaSalih1993@users.noreply.github.com> | 2021-01-26 02:44:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 02:44:13 +0300 |
commit | 6c0dfddead48e603826fbf637fe51f02e8320223 (patch) | |
tree | 3ac7796df10cd487598e4c256c96a84ab08a39fd /src/types.rs | |
parent | 9525a1075199d5fd202d1744dc502ff5a766aa99 (diff) |
Reads network bandwith (#39)
* updated crate version
* updated crate version
* rsblocks now reads netspeed per second
Diffstat (limited to 'src/types.rs')
-rw-r--r-- | src/types.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs index a4d597e..7184d47 100644 --- a/src/types.rs +++ b/src/types.rs @@ -13,6 +13,7 @@ pub enum ThreadsData { Uptime(String), Spotify(String), LoadAvg(String), + NetSpeed(String), } #[derive(Clone)] @@ -113,6 +114,14 @@ pub struct LoadAvg { pub delay: f64, } +#[derive(Clone)] +pub struct NetSpeed { + pub transmit_icon: String, + pub recieve_icon: String, + pub interface: String, + pub enabled: bool, +} + pub struct Blocks { pub disp: Display<name::NameConnection>, pub root: Window, |