Struct gio::FileMonitorFlags
source · [−]pub struct FileMonitorFlags { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Binary for FileMonitorFlags
impl Binary for FileMonitorFlags
sourceimpl BitAnd<FileMonitorFlags> for FileMonitorFlags
impl BitAnd<FileMonitorFlags> for FileMonitorFlags
sourcefn bitand(self, other: FileMonitorFlags) -> FileMonitorFlags
fn bitand(self, other: FileMonitorFlags) -> FileMonitorFlags
Returns the intersection between the two sets of flags.
type Output = FileMonitorFlags
type Output = FileMonitorFlags
& operator.sourceimpl BitAndAssign<FileMonitorFlags> for FileMonitorFlags
impl BitAndAssign<FileMonitorFlags> for FileMonitorFlags
sourcefn bitand_assign(&mut self, other: FileMonitorFlags)
fn bitand_assign(&mut self, other: FileMonitorFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<FileMonitorFlags> for FileMonitorFlags
impl BitOr<FileMonitorFlags> for FileMonitorFlags
sourcefn bitor(self, other: FileMonitorFlags) -> FileMonitorFlags
fn bitor(self, other: FileMonitorFlags) -> FileMonitorFlags
Returns the union of the two sets of flags.
type Output = FileMonitorFlags
type Output = FileMonitorFlags
| operator.sourceimpl BitOrAssign<FileMonitorFlags> for FileMonitorFlags
impl BitOrAssign<FileMonitorFlags> for FileMonitorFlags
sourcefn bitor_assign(&mut self, other: FileMonitorFlags)
fn bitor_assign(&mut self, other: FileMonitorFlags)
Adds the set of flags.
sourceimpl BitXor<FileMonitorFlags> for FileMonitorFlags
impl BitXor<FileMonitorFlags> for FileMonitorFlags
sourcefn bitxor(self, other: FileMonitorFlags) -> FileMonitorFlags
fn bitxor(self, other: FileMonitorFlags) -> FileMonitorFlags
Returns the left flags, but with all the right flags toggled.
type Output = FileMonitorFlags
type Output = FileMonitorFlags
^ operator.sourceimpl BitXorAssign<FileMonitorFlags> for FileMonitorFlags
impl BitXorAssign<FileMonitorFlags> for FileMonitorFlags
sourcefn bitxor_assign(&mut self, other: FileMonitorFlags)
fn bitxor_assign(&mut self, other: FileMonitorFlags)
Toggles the set of flags.
sourceimpl Clone for FileMonitorFlags
impl Clone for FileMonitorFlags
sourcefn clone(&self) -> FileMonitorFlags
fn clone(&self) -> FileMonitorFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for FileMonitorFlags
impl Debug for FileMonitorFlags
sourceimpl Extend<FileMonitorFlags> for FileMonitorFlags
impl Extend<FileMonitorFlags> for FileMonitorFlags
sourcefn extend<T: IntoIterator<Item = FileMonitorFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FileMonitorFlags>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)sourceimpl FromIterator<FileMonitorFlags> for FileMonitorFlags
impl FromIterator<FileMonitorFlags> for FileMonitorFlags
sourcefn from_iter<T: IntoIterator<Item = FileMonitorFlags>>(
iterator: T
) -> FileMonitorFlags
fn from_iter<T: IntoIterator<Item = FileMonitorFlags>>(
iterator: T
) -> FileMonitorFlags
sourceimpl<'a> FromValue<'a> for FileMonitorFlags
impl<'a> FromValue<'a> for FileMonitorFlags
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for FileMonitorFlags
impl<'a> FromValueOptional<'a> for FileMonitorFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for FileMonitorFlags
impl Hash for FileMonitorFlags
sourceimpl LowerHex for FileMonitorFlags
impl LowerHex for FileMonitorFlags
sourceimpl Not for FileMonitorFlags
impl Not for FileMonitorFlags
sourcefn not(self) -> FileMonitorFlags
fn not(self) -> FileMonitorFlags
Returns the complement of this set of flags.
type Output = FileMonitorFlags
type Output = FileMonitorFlags
! operator.sourceimpl Octal for FileMonitorFlags
impl Octal for FileMonitorFlags
sourceimpl Ord for FileMonitorFlags
impl Ord for FileMonitorFlags
sourcefn cmp(&self, other: &FileMonitorFlags) -> Ordering
fn cmp(&self, other: &FileMonitorFlags) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<FileMonitorFlags> for FileMonitorFlags
impl PartialEq<FileMonitorFlags> for FileMonitorFlags
sourcefn eq(&self, other: &FileMonitorFlags) -> bool
fn eq(&self, other: &FileMonitorFlags) -> bool
sourceimpl PartialOrd<FileMonitorFlags> for FileMonitorFlags
impl PartialOrd<FileMonitorFlags> for FileMonitorFlags
sourcefn partial_cmp(&self, other: &FileMonitorFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &FileMonitorFlags) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for FileMonitorFlags
impl StaticType for FileMonitorFlags
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<FileMonitorFlags> for FileMonitorFlags
impl Sub<FileMonitorFlags> for FileMonitorFlags
sourcefn sub(self, other: FileMonitorFlags) -> FileMonitorFlags
fn sub(self, other: FileMonitorFlags) -> FileMonitorFlags
Returns the set difference of the two sets of flags.
type Output = FileMonitorFlags
type Output = FileMonitorFlags
- operator.sourceimpl SubAssign<FileMonitorFlags> for FileMonitorFlags
impl SubAssign<FileMonitorFlags> for FileMonitorFlags
sourcefn sub_assign(&mut self, other: FileMonitorFlags)
fn sub_assign(&mut self, other: FileMonitorFlags)
Disables all flags enabled in the set.
sourceimpl UpperHex for FileMonitorFlags
impl UpperHex for FileMonitorFlags
impl Copy for FileMonitorFlags
impl Eq for FileMonitorFlags
impl StructuralEq for FileMonitorFlags
impl StructuralPartialEq for FileMonitorFlags
Auto Trait Implementations
impl RefUnwindSafe for FileMonitorFlags
impl Send for FileMonitorFlags
impl Sync for FileMonitorFlags
impl Unpin for FileMonitorFlags
impl UnwindSafe for FileMonitorFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.