User watchable file events.
pub const ACCESS = 0x00000001pub const MODIFIED = 0x00000002pub const ATTRIB = 0x00000004pub const DELETE = 0x00000010pub const RENAME_TO = 0x00000020pub const RENAME_FROM = 0x00000040pub const TRUNC = 0x00100000pub const NOFOLLOW = 0x10000000The filesystem holding the watched file was unmounted.
pub const UNMOUNTED = 0x20000000Some other file/filesystem got mounted over the watched file/directory.
pub const MOUNTEDOVER = 0x40000000pub fn isException(event: u32) boolevent: u32pub fn isException(event: u32) bool {
return event & (UNMOUNTED | DELETE | RENAME_TO | RENAME_FROM | MOUNTEDOVER) > 0;
}pub const FILE_EVENT = struct {
pub const ACCESS = 0x00000001;
pub const MODIFIED = 0x00000002;
pub const ATTRIB = 0x00000004;
pub const DELETE = 0x00000010;
pub const RENAME_TO = 0x00000020;
pub const RENAME_FROM = 0x00000040;
pub const TRUNC = 0x00100000;
pub const NOFOLLOW = 0x10000000;
/// The filesystem holding the watched file was unmounted.
pub const UNMOUNTED = 0x20000000;
/// Some other file/filesystem got mounted over the watched file/directory.
pub const MOUNTEDOVER = 0x40000000;
pub fn isException(event: u32) bool {
return event & (UNMOUNTED | DELETE | RENAME_TO | RENAME_FROM | MOUNTEDOVER) > 0;
}
}