use std::time::Instant;
use notify::{Error as NotifyError, Event as NotifyEvent};
pub type FsEventResult = Result<Vec<FsEvent>, Vec<NotifyError>>;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct FsEvent {
pub detail: NotifyEvent,
pub time: Instant,
}
pub trait FsEventHandler: Send + 'static {
fn handle_event(&mut self, event: FsEventResult);
}