|
|
@ -326,15 +326,17 @@ pub fn watch(path: impl AsRef<Path>) -> Oneesan
|
|
|
|
handle,
|
|
|
|
handle,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
output
|
|
|
|
output
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Some predefined filter functions
|
|
|
|
pub mod filter
|
|
|
|
pub mod filter
|
|
|
|
{
|
|
|
|
{
|
|
|
|
use super::*;
|
|
|
|
use super::*;
|
|
|
|
|
|
|
|
|
|
|
|
#[inline(always)]
|
|
|
|
#[inline(always)]
|
|
|
|
const fn all(_: &Event) -> bool {true}
|
|
|
|
const fn all(_: &Event) -> bool {true}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Empty filter, accept all
|
|
|
|
pub const ALL: Option<fn (&Event) -> bool> = None;
|
|
|
|
pub const ALL: Option<fn (&Event) -> bool> = None;
|
|
|
|
}
|
|
|
|
}
|
|
|
|