You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
434 B
29 lines
434 B
//! Live config reloader
|
|
use super::*;
|
|
use std::{
|
|
path::{
|
|
PathBuf,
|
|
},
|
|
};
|
|
|
|
/// An event to be passed to `Context`.
|
|
#[derive(Debug)]
|
|
pub enum Event
|
|
{
|
|
|
|
}
|
|
|
|
/// A watcher context, we hook specific `Context`s here, to be dispatched to on file change
|
|
#[derive(Debug)]
|
|
pub struct Oneesan {
|
|
path: PathBuf,
|
|
//TODO: Hooks
|
|
}
|
|
|
|
/// Start watching this path for changes of files
|
|
pub fn watch(path: PathBuf) -> Oneesan
|
|
{
|
|
|
|
}
|
|
|