diff options
| author | Andreas Grois <andi@grois.info> | 2024-01-24 21:40:48 +0100 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2024-01-24 21:40:48 +0100 |
| commit | 57fd648407a233ae62b2c561d902783597274f83 (patch) | |
| tree | 6c4149d45eebfd3374d18c61ff766c8e0814f322 /alsa/src/runnable.rs | |
| parent | 3f362de1ab94b994ef4ccdc403cab4cb8d0d1bcb (diff) | |
Start work on ALSA volume display
Diffstat (limited to 'alsa/src/runnable.rs')
| -rw-r--r-- | alsa/src/runnable.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/alsa/src/runnable.rs b/alsa/src/runnable.rs new file mode 100644 index 0000000..85d23a4 --- /dev/null +++ b/alsa/src/runnable.rs @@ -0,0 +1,22 @@ +use std::sync::mpsc::Receiver; +use swaystatus_plugin::*; +use super::config::AlsaVolumeConfig; +use super::communication::MessagesFromMain; + +pub struct AlsaVolumeRunnable<'r>{ + to_main : Box<dyn MsgModuleToMain + 'r>, + from_main : Receiver<MessagesFromMain>, + config : &'r AlsaVolumeConfig, +} + +impl<'r> AlsaVolumeRunnable<'r> { + pub fn new(to_main : Box<dyn MsgModuleToMain + 'r>, from_main : Receiver<MessagesFromMain>, config : &'r AlsaVolumeConfig) -> Self { + Self { to_main, from_main, config } + } +} + +impl<'r> SwayStatusModuleRunnable for AlsaVolumeRunnable<'r> { + fn run(&self) { + todo!() + } +} |
