pub struct FileMonitorFlags { /* private fields */ }
Implementations§
Source§impl FileMonitorFlags
impl FileMonitorFlags
pub const NONE: FileMonitorFlags
pub const WATCH_MOUNTS: FileMonitorFlags
pub const SEND_MOVED: FileMonitorFlags
pub const WATCH_HARD_LINKS: FileMonitorFlags
pub const WATCH_MOVES: FileMonitorFlags
Sourcepub const fn empty() -> FileMonitorFlags
pub const fn empty() -> FileMonitorFlags
Returns an empty set of flags
Sourcepub const fn all() -> FileMonitorFlags
pub const fn all() -> FileMonitorFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<FileMonitorFlags>
pub fn from_bits(bits: u32) -> Option<FileMonitorFlags>
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) -> FileMonitorFlags
pub const fn from_bits_truncate(bits: u32) -> FileMonitorFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> FileMonitorFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> FileMonitorFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: FileMonitorFlags) -> bool
pub const fn intersects(&self, other: FileMonitorFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: FileMonitorFlags) -> bool
pub const fn contains(&self, other: FileMonitorFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: FileMonitorFlags)
pub fn insert(&mut self, other: FileMonitorFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: FileMonitorFlags)
pub fn remove(&mut self, other: FileMonitorFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: FileMonitorFlags)
pub fn toggle(&mut self, other: FileMonitorFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: FileMonitorFlags, value: bool)
pub fn set(&mut self, other: FileMonitorFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for FileMonitorFlags
impl Binary for FileMonitorFlags
Source§impl BitAnd for FileMonitorFlags
impl BitAnd for FileMonitorFlags
Source§fn bitand(self, other: FileMonitorFlags) -> FileMonitorFlags
fn bitand(self, other: FileMonitorFlags) -> FileMonitorFlags
Returns the intersection between the two sets of flags.
Source§type Output = FileMonitorFlags
type Output = FileMonitorFlags
&
operator.Source§impl BitAndAssign for FileMonitorFlags
impl BitAndAssign for FileMonitorFlags
Source§fn bitand_assign(&mut self, other: FileMonitorFlags)
fn bitand_assign(&mut self, other: FileMonitorFlags)
Disables all flags disabled in the set.
Source§impl BitOr for FileMonitorFlags
impl BitOr for FileMonitorFlags
Source§fn bitor(self, other: FileMonitorFlags) -> FileMonitorFlags
fn bitor(self, other: FileMonitorFlags) -> FileMonitorFlags
Returns the union of the two sets of flags.
Source§type Output = FileMonitorFlags
type Output = FileMonitorFlags
|
operator.Source§impl BitOrAssign for FileMonitorFlags
impl BitOrAssign for FileMonitorFlags
Source§fn bitor_assign(&mut self, other: FileMonitorFlags)
fn bitor_assign(&mut self, other: FileMonitorFlags)
Adds the set of flags.
Source§impl BitXor for FileMonitorFlags
impl BitXor for FileMonitorFlags
Source§fn bitxor(self, other: FileMonitorFlags) -> FileMonitorFlags
fn bitxor(self, other: FileMonitorFlags) -> FileMonitorFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = FileMonitorFlags
type Output = FileMonitorFlags
^
operator.Source§impl BitXorAssign for FileMonitorFlags
impl BitXorAssign for FileMonitorFlags
Source§fn bitxor_assign(&mut self, other: FileMonitorFlags)
fn bitxor_assign(&mut self, other: FileMonitorFlags)
Toggles the set of flags.
Source§impl Clone for FileMonitorFlags
impl Clone for FileMonitorFlags
Source§fn clone(&self) -> FileMonitorFlags
fn clone(&self) -> FileMonitorFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FileMonitorFlags
impl Debug for FileMonitorFlags
Source§impl Extend<FileMonitorFlags> for FileMonitorFlags
impl Extend<FileMonitorFlags> for FileMonitorFlags
Source§fn extend<T: IntoIterator<Item = FileMonitorFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FileMonitorFlags>>(&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<FileMonitorFlags> for FileMonitorFlags
impl FromIterator<FileMonitorFlags> for FileMonitorFlags
Source§fn from_iter<T: IntoIterator<Item = FileMonitorFlags>>(
iterator: T,
) -> FileMonitorFlags
fn from_iter<T: IntoIterator<Item = FileMonitorFlags>>( iterator: T, ) -> FileMonitorFlags
Source§impl<'a> FromValue<'a> for FileMonitorFlags
impl<'a> FromValue<'a> for FileMonitorFlags
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for FileMonitorFlags
impl<'a> FromValueOptional<'a> for FileMonitorFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for FileMonitorFlags
impl Hash for FileMonitorFlags
Source§impl LowerHex for FileMonitorFlags
impl LowerHex for FileMonitorFlags
Source§impl Not for FileMonitorFlags
impl Not for FileMonitorFlags
Source§fn not(self) -> FileMonitorFlags
fn not(self) -> FileMonitorFlags
Returns the complement of this set of flags.
Source§type Output = FileMonitorFlags
type Output = FileMonitorFlags
!
operator.Source§impl Octal for FileMonitorFlags
impl Octal for FileMonitorFlags
Source§impl Ord for FileMonitorFlags
impl Ord for FileMonitorFlags
Source§fn cmp(&self, other: &FileMonitorFlags) -> Ordering
fn cmp(&self, other: &FileMonitorFlags) -> 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 FileMonitorFlags
impl PartialEq for FileMonitorFlags
Source§impl PartialOrd for FileMonitorFlags
impl PartialOrd for FileMonitorFlags
Source§impl StaticType for FileMonitorFlags
impl StaticType for FileMonitorFlags
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for FileMonitorFlags
impl Sub for FileMonitorFlags
Source§fn sub(self, other: FileMonitorFlags) -> FileMonitorFlags
fn sub(self, other: FileMonitorFlags) -> FileMonitorFlags
Returns the set difference of the two sets of flags.
Source§type Output = FileMonitorFlags
type Output = FileMonitorFlags
-
operator.Source§impl SubAssign for FileMonitorFlags
impl SubAssign for FileMonitorFlags
Source§fn sub_assign(&mut self, other: FileMonitorFlags)
fn sub_assign(&mut self, other: FileMonitorFlags)
Disables all flags enabled in the set.
Source§impl UpperHex for FileMonitorFlags
impl UpperHex for FileMonitorFlags
impl Copy for FileMonitorFlags
impl Eq for FileMonitorFlags
impl StructuralPartialEq for FileMonitorFlags
Auto Trait Implementations§
impl Freeze for FileMonitorFlags
impl RefUnwindSafe for FileMonitorFlags
impl Send for FileMonitorFlags
impl Sync for FileMonitorFlags
impl Unpin for FileMonitorFlags
impl UnwindSafe for FileMonitorFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.