Struct libuv::handles::fs_event::FsEventFlags
source · pub struct FsEventFlags { /* private fields */ }
Expand description
Flags for FsEventHandle::start()
Implementations§
source§impl FsEventFlags
impl FsEventFlags
sourcepub const WATCHENTRY: FsEventFlags = _
pub const WATCHENTRY: FsEventFlags = _
By default, if the fs event watcher is given a directory name, we will watch for all events in that directory. This flags overrides this behavior and makes fs_event report only changes to the directory entry itself. This flag does not affect individual files watched.
This flag is currently not implemented yet on any backend.
sourcepub const STAT: FsEventFlags = _
pub const STAT: FsEventFlags = _
By default FsEventHandle will try to use a kernel interface such as inotify or kqueue to detect events. This may not work on remote file systems such as NFS mounts. This flag makes fs_event fall back to calling stat() on a regular interval.
This flag is currently not implemented yet on any backend.
sourcepub const RECURSIVE: FsEventFlags = _
pub const RECURSIVE: FsEventFlags = _
By default, event watcher, when watching directory, is not registering (is ignoring) changes in its subdirectories.
This flag will override this behaviour on platforms that support it.
sourcepub const fn empty() -> FsEventFlags
pub const fn empty() -> FsEventFlags
Returns an empty set of flags
sourcepub const fn all() -> FsEventFlags
pub const fn all() -> FsEventFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<FsEventFlags>
pub fn from_bits(bits: u32) -> Option<FsEventFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> FsEventFlags
pub const fn from_bits_truncate(bits: u32) -> FsEventFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> FsEventFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> FsEventFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: FsEventFlags) -> bool
pub const fn intersects(&self, other: FsEventFlags) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: FsEventFlags) -> bool
pub const fn contains(&self, other: FsEventFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: FsEventFlags)
pub fn insert(&mut self, other: FsEventFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: FsEventFlags)
pub fn remove(&mut self, other: FsEventFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: FsEventFlags)
pub fn toggle(&mut self, other: FsEventFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: FsEventFlags, value: bool)
pub fn set(&mut self, other: FsEventFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
source§impl Binary for FsEventFlags
impl Binary for FsEventFlags
source§impl BitAnd for FsEventFlags
impl BitAnd for FsEventFlags
source§fn bitand(self, other: FsEventFlags) -> FsEventFlags
fn bitand(self, other: FsEventFlags) -> FsEventFlags
Returns the intersection between the two sets of flags.
§type Output = FsEventFlags
type Output = FsEventFlags
&
operator.source§impl BitAndAssign for FsEventFlags
impl BitAndAssign for FsEventFlags
source§fn bitand_assign(&mut self, other: FsEventFlags)
fn bitand_assign(&mut self, other: FsEventFlags)
Disables all flags disabled in the set.
source§impl BitOr for FsEventFlags
impl BitOr for FsEventFlags
source§fn bitor(self, other: FsEventFlags) -> FsEventFlags
fn bitor(self, other: FsEventFlags) -> FsEventFlags
Returns the union of the two sets of flags.
§type Output = FsEventFlags
type Output = FsEventFlags
|
operator.source§impl BitOrAssign for FsEventFlags
impl BitOrAssign for FsEventFlags
source§fn bitor_assign(&mut self, other: FsEventFlags)
fn bitor_assign(&mut self, other: FsEventFlags)
Adds the set of flags.
source§impl BitXor for FsEventFlags
impl BitXor for FsEventFlags
source§fn bitxor(self, other: FsEventFlags) -> FsEventFlags
fn bitxor(self, other: FsEventFlags) -> FsEventFlags
Returns the left flags, but with all the right flags toggled.
§type Output = FsEventFlags
type Output = FsEventFlags
^
operator.source§impl BitXorAssign for FsEventFlags
impl BitXorAssign for FsEventFlags
source§fn bitxor_assign(&mut self, other: FsEventFlags)
fn bitxor_assign(&mut self, other: FsEventFlags)
Toggles the set of flags.
source§impl Clone for FsEventFlags
impl Clone for FsEventFlags
source§fn clone(&self) -> FsEventFlags
fn clone(&self) -> FsEventFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FsEventFlags
impl Debug for FsEventFlags
source§impl Extend<FsEventFlags> for FsEventFlags
impl Extend<FsEventFlags> for FsEventFlags
source§fn extend<T: IntoIterator<Item = FsEventFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FsEventFlags>>(&mut self, iterator: T)
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl FromIterator<FsEventFlags> for FsEventFlags
impl FromIterator<FsEventFlags> for FsEventFlags
source§fn from_iter<T: IntoIterator<Item = FsEventFlags>>(iterator: T) -> FsEventFlags
fn from_iter<T: IntoIterator<Item = FsEventFlags>>(iterator: T) -> FsEventFlags
source§impl Hash for FsEventFlags
impl Hash for FsEventFlags
source§impl LowerHex for FsEventFlags
impl LowerHex for FsEventFlags
source§impl Not for FsEventFlags
impl Not for FsEventFlags
source§fn not(self) -> FsEventFlags
fn not(self) -> FsEventFlags
Returns the complement of this set of flags.
§type Output = FsEventFlags
type Output = FsEventFlags
!
operator.source§impl Octal for FsEventFlags
impl Octal for FsEventFlags
source§impl Ord for FsEventFlags
impl Ord for FsEventFlags
source§fn cmp(&self, other: &FsEventFlags) -> Ordering
fn cmp(&self, other: &FsEventFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for FsEventFlags
impl PartialEq for FsEventFlags
source§fn eq(&self, other: &FsEventFlags) -> bool
fn eq(&self, other: &FsEventFlags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FsEventFlags
impl PartialOrd for FsEventFlags
source§fn partial_cmp(&self, other: &FsEventFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &FsEventFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Sub for FsEventFlags
impl Sub for FsEventFlags
source§fn sub(self, other: FsEventFlags) -> FsEventFlags
fn sub(self, other: FsEventFlags) -> FsEventFlags
Returns the set difference of the two sets of flags.
§type Output = FsEventFlags
type Output = FsEventFlags
-
operator.source§impl SubAssign for FsEventFlags
impl SubAssign for FsEventFlags
source§fn sub_assign(&mut self, other: FsEventFlags)
fn sub_assign(&mut self, other: FsEventFlags)
Disables all flags enabled in the set.