#[repr(u64)]pub enum Interest {
Show 34 variants
Established = 1,
Any = 2,
Access = 4,
AccessOpen = 8,
AccessClose = 16,
AccessRead = 32,
AccessOther = 64,
Create = 128,
CreateFile = 256,
CreateFolder = 512,
CreateOther = 1_024,
Modify = 2_048,
ModifyData = 4_096,
ModifyDataSize = 8_192,
ModifyDataContent = 16_384,
ModifyDataOther = 32_768,
ModifyMetadata = 65_536,
ModifyMetadataAccessTime = 131_072,
ModifyMetadataWriteTime = 262_144,
ModifyMetadataPermissions = 524_288,
ModifyMetadataOwnership = 1_048_576,
ModifyMetadataExtended = 2_097_152,
ModifyMetadataOther = 4_194_304,
ModifyRename = 8_388_608,
ModifyRenameTo = 16_777_216,
ModifyRenameFrom = 33_554_432,
ModifyRenameBoth = 67_108_864,
ModifyRenameOther = 134_217_728,
ModifyOther = 268_435_456,
Delete = 536_870_912,
DeleteFile = 1_073_741_824,
DeleteFolder = 2_147_483_648,
DeleteOther = 4_294_967_296,
Other = 8_589_934_592,
}Variants§
Established = 1
Synthetic event fired when a watch is first established.
This is not a filesystem event—it’s generated immediately when the watch is set up, regardless of whether the path exists. Useful for triggering an initial read of watched files.
Any = 2
Matches any event type.
Access = 4
AccessOpen = 8
AccessClose = 16
AccessRead = 32
AccessOther = 64
Create = 128
CreateFile = 256
CreateFolder = 512
CreateOther = 1_024
Modify = 2_048
ModifyData = 4_096
ModifyDataSize = 8_192
ModifyDataContent = 16_384
ModifyDataOther = 32_768
ModifyMetadata = 65_536
ModifyMetadataAccessTime = 131_072
ModifyMetadataWriteTime = 262_144
ModifyMetadataPermissions = 524_288
ModifyMetadataOwnership = 1_048_576
ModifyMetadataExtended = 2_097_152
ModifyMetadataOther = 4_194_304
ModifyRename = 8_388_608
ModifyRenameTo = 16_777_216
ModifyRenameFrom = 33_554_432
ModifyRenameBoth = 67_108_864
ModifyRenameOther = 134_217_728
ModifyOther = 268_435_456
Delete = 536_870_912
DeleteFile = 1_073_741_824
DeleteFolder = 2_147_483_648
DeleteOther = 4_294_967_296
Other = 8_589_934_592
Trait Implementations§
Source§impl BitFlag for Interest
impl BitFlag for Interest
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreimpl Copy for Interest
impl Eq for Interest
Source§impl Ord for Interest
impl Ord for Interest
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Interest
impl PartialOrd for Interest
Source§impl RawBitFlags for Interest
impl RawBitFlags for Interest
impl StructuralPartialEq for Interest
Auto Trait Implementations§
impl Freeze for Interest
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnsafeUnpin for Interest
impl UnwindSafe for Interest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.