Struct gio::FileMonitorFlags [−]
pub struct FileMonitorFlags { /* fields omitted */ }Methods
impl FileMonitorFlags
impl FileMonitorFlagspub const NONE: FileMonitorFlags
NONE: FileMonitorFlags = FileMonitorFlags{bits: 0,}
pub const WATCH_MOUNTS: FileMonitorFlags
WATCH_MOUNTS: FileMonitorFlags = FileMonitorFlags{bits: 1,}
pub const SEND_MOVED: FileMonitorFlags
SEND_MOVED: FileMonitorFlags = FileMonitorFlags{bits: 2,}
pub const WATCH_HARD_LINKS: FileMonitorFlags
WATCH_HARD_LINKS: FileMonitorFlags = FileMonitorFlags{bits: 4,}
pub const WATCH_MOVES: FileMonitorFlags
WATCH_MOVES: FileMonitorFlags = FileMonitorFlags{bits: 8,}
pub fn empty() -> FileMonitorFlags
pub fn empty() -> FileMonitorFlagsReturns an empty set of flags.
pub fn all() -> FileMonitorFlags
pub fn all() -> FileMonitorFlagsReturns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32Returns the raw value of the flags currently stored.
pub 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.
pub fn from_bits_truncate(bits: u32) -> FileMonitorFlags
pub fn from_bits_truncate(bits: u32) -> FileMonitorFlagsConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: FileMonitorFlags) -> bool
pub fn intersects(&self, other: FileMonitorFlags) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: FileMonitorFlags) -> bool
pub fn contains(&self, other: FileMonitorFlags) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: FileMonitorFlags)
pub fn insert(&mut self, other: FileMonitorFlags)Inserts the specified flags in-place.
pub fn remove(&mut self, other: FileMonitorFlags)
pub fn remove(&mut self, other: FileMonitorFlags)Removes the specified flags in-place.
pub fn toggle(&mut self, other: FileMonitorFlags)
pub fn toggle(&mut self, other: FileMonitorFlags)Toggles the specified flags in-place.
pub 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
impl Copy for FileMonitorFlags
impl Copy for FileMonitorFlagsimpl PartialEq for FileMonitorFlags
impl PartialEq for FileMonitorFlagsfn eq(&self, other: &FileMonitorFlags) -> bool
fn eq(&self, other: &FileMonitorFlags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &FileMonitorFlags) -> bool
fn ne(&self, other: &FileMonitorFlags) -> boolThis method tests for !=.
impl Eq for FileMonitorFlags
impl Eq for FileMonitorFlagsimpl Clone for FileMonitorFlags
impl Clone for FileMonitorFlagsfn clone(&self) -> FileMonitorFlags
fn clone(&self) -> FileMonitorFlagsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for FileMonitorFlags
impl PartialOrd for FileMonitorFlagsfn partial_cmp(&self, other: &FileMonitorFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &FileMonitorFlags) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &FileMonitorFlags) -> bool
fn lt(&self, other: &FileMonitorFlags) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &FileMonitorFlags) -> bool
fn le(&self, other: &FileMonitorFlags) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &FileMonitorFlags) -> bool
fn gt(&self, other: &FileMonitorFlags) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &FileMonitorFlags) -> bool
fn ge(&self, other: &FileMonitorFlags) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for FileMonitorFlags
impl Ord for FileMonitorFlagsfn cmp(&self, other: &FileMonitorFlags) -> Ordering
fn cmp(&self, other: &FileMonitorFlags) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for FileMonitorFlags
impl Hash for FileMonitorFlagsfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for FileMonitorFlags
impl Debug for FileMonitorFlagsimpl Binary for FileMonitorFlags
impl Binary for FileMonitorFlagsimpl Octal for FileMonitorFlags
impl Octal for FileMonitorFlagsimpl LowerHex for FileMonitorFlags
impl LowerHex for FileMonitorFlagsimpl UpperHex for FileMonitorFlags
impl UpperHex for FileMonitorFlagsimpl BitOr for FileMonitorFlags
impl BitOr for FileMonitorFlagstype Output = FileMonitorFlags
The resulting type after applying the | operator.
fn bitor(self, other: FileMonitorFlags) -> FileMonitorFlags
fn bitor(self, other: FileMonitorFlags) -> FileMonitorFlagsReturns the union of the two sets of flags.
impl BitOrAssign for FileMonitorFlags
impl BitOrAssign for FileMonitorFlagsfn bitor_assign(&mut self, other: FileMonitorFlags)
fn bitor_assign(&mut self, other: FileMonitorFlags)Adds the set of flags.
impl BitXor for FileMonitorFlags
impl BitXor for FileMonitorFlagstype Output = FileMonitorFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: FileMonitorFlags) -> FileMonitorFlags
fn bitxor(self, other: FileMonitorFlags) -> FileMonitorFlagsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for FileMonitorFlags
impl BitXorAssign for FileMonitorFlagsfn bitxor_assign(&mut self, other: FileMonitorFlags)
fn bitxor_assign(&mut self, other: FileMonitorFlags)Toggles the set of flags.
impl BitAnd for FileMonitorFlags
impl BitAnd for FileMonitorFlagstype Output = FileMonitorFlags
The resulting type after applying the & operator.
fn bitand(self, other: FileMonitorFlags) -> FileMonitorFlags
fn bitand(self, other: FileMonitorFlags) -> FileMonitorFlagsReturns the intersection between the two sets of flags.
impl BitAndAssign for FileMonitorFlags
impl BitAndAssign for FileMonitorFlagsfn bitand_assign(&mut self, other: FileMonitorFlags)
fn bitand_assign(&mut self, other: FileMonitorFlags)Disables all flags disabled in the set.
impl Sub for FileMonitorFlags
impl Sub for FileMonitorFlagstype Output = FileMonitorFlags
The resulting type after applying the - operator.
fn sub(self, other: FileMonitorFlags) -> FileMonitorFlags
fn sub(self, other: FileMonitorFlags) -> FileMonitorFlagsReturns the set difference of the two sets of flags.
impl SubAssign for FileMonitorFlags
impl SubAssign for FileMonitorFlagsfn sub_assign(&mut self, other: FileMonitorFlags)
fn sub_assign(&mut self, other: FileMonitorFlags)Disables all flags enabled in the set.
impl Not for FileMonitorFlags
impl Not for FileMonitorFlagstype Output = FileMonitorFlags
The resulting type after applying the ! operator.
fn not(self) -> FileMonitorFlags
fn not(self) -> FileMonitorFlagsReturns the complement of this set of flags.
impl Extend<FileMonitorFlags> for FileMonitorFlags
impl Extend<FileMonitorFlags> for FileMonitorFlagsfn extend<T: IntoIterator<Item = FileMonitorFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FileMonitorFlags>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<FileMonitorFlags> for FileMonitorFlags
impl FromIterator<FileMonitorFlags> for FileMonitorFlagsfn from_iter<T: IntoIterator<Item = FileMonitorFlags>>(
iterator: T
) -> FileMonitorFlags
fn from_iter<T: IntoIterator<Item = FileMonitorFlags>>(
iterator: T
) -> FileMonitorFlagsCreates a value from an iterator. Read more
impl StaticType for FileMonitorFlags[src]
impl StaticType for FileMonitorFlagsfn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl<'a> FromValueOptional<'a> for FileMonitorFlags[src]
impl<'a> FromValueOptional<'a> for FileMonitorFlagsunsafe fn from_value_optional(value: &Value) -> Option<Self>[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>impl<'a> FromValue<'a> for FileMonitorFlags[src]
impl<'a> FromValue<'a> for FileMonitorFlagsunsafe fn from_value(value: &Value) -> Self[src]
unsafe fn from_value(value: &Value) -> Selfimpl SetValue for FileMonitorFlags[src]
impl SetValue for FileMonitorFlagsAuto Trait Implementations
impl Send for FileMonitorFlags
impl Send for FileMonitorFlagsimpl Sync for FileMonitorFlags
impl Sync for FileMonitorFlags