notify_types/
debouncer_mini.rsuse std::path::PathBuf;
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[non_exhaustive]
pub enum DebouncedEventKind {
Any,
AnyContinuous,
}
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct DebouncedEvent {
pub path: PathBuf,
pub kind: DebouncedEventKind,
}
impl DebouncedEvent {
#[inline(always)]
pub fn new(path: PathBuf, kind: DebouncedEventKind) -> Self {
Self { path, kind }
}
}