Move ImfsEvent into its own module

This commit is contained in:
Lucien Greathouse 2019-10-01 10:44:35 -07:00
parent bcf4fea598
commit 1737da9c1f
6 changed files with 17 additions and 7 deletions

View file

@ -5,15 +5,14 @@ use std::{
use crossbeam_channel::Receiver;
use super::event::ImfsEvent;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum FileType {
File,
Directory,
}
// TODO: Use our own event type instead of notify's.
pub type ImfsEvent = notify::DebouncedEvent;
/// The generic interface that `Imfs` uses to lazily read files from the disk.
/// In tests, it's stubbed out to do different versions of absolutely nothing
/// depending on the test.