From f504632c4dfc16d2ba8d9302d805fd51ee02a59e Mon Sep 17 00:00:00 2001 From: prplV Date: Thu, 10 Apr 2025 08:53:52 -0400 Subject: [PATCH] files v2 controller without impl --- noxis-rs/src/utils/files.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/noxis-rs/src/utils/files.rs b/noxis-rs/src/utils/files.rs index 3d0dade..ee5d942 100644 --- a/noxis-rs/src/utils/files.rs +++ b/noxis-rs/src/utils/files.rs @@ -5,7 +5,25 @@ use std::borrow::BorrowMut; use std::path::Path; use std::sync::Arc; use tokio::sync::mpsc; +use tokio::sync::mpsc::Sender as MpscSender; use tokio::time::Duration; +use crate::options::structs::Events; + +pub mod v2 { + use std::collections::HashMap; + + use crate::options::structs::Triggers; + + use super::*; + + struct FilesController<'a> { + name: &'a str, + watcher: Inotify, + // obj: Arc, + triggers: HashMap<&'a str, Triggers<'a>>, + event_registrator: Vec>>, + } +} /// # Fn `create_watcher` /// ## for creating watcher on file's delete | update events