summaryrefslogtreecommitdiff
path: root/src/watch.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-05-14 01:49:22 +0200
committermo8it <mo8it@proton.me>2024-05-14 01:49:22 +0200
commitc8481d35c120ff99213e6ed73ba889e51cac10c5 (patch)
treefa6e94b279a0f0ff85b87fea33b5a0566f83179c /src/watch.rs
parent96a44f3dcf2dd9e2562b757d7840084b45b90b61 (diff)
Done documentation
Diffstat (limited to 'src/watch.rs')
-rw-r--r--src/watch.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/watch.rs b/src/watch.rs
index 2fbc533..88a1230 100644
--- a/src/watch.rs
+++ b/src/watch.rs
@@ -14,7 +14,7 @@ use std::{
use crate::app_state::{AppState, ExercisesProgress};
use self::{
- notify_event::DebounceEventHandler,
+ notify_event::NotifyEventHandler,
state::WatchState,
terminal_event::{terminal_event_handler, InputEvent},
};
@@ -40,6 +40,7 @@ pub enum WatchExit {
List,
}
+/// `notify_exercise_names` as None activates the manual run mode.
pub fn watch(
app_state: &mut AppState,
notify_exercise_names: Option<&'static [&'static [u8]]>,
@@ -52,7 +53,7 @@ pub fn watch(
let _debouncer_guard = if let Some(exercise_names) = notify_exercise_names {
let mut debouncer = new_debouncer(
Duration::from_millis(200),
- DebounceEventHandler {
+ NotifyEventHandler {
tx: tx.clone(),
exercise_names,
},