diff options
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, |