pub struct Op { /* private fields */ }Expand description
Holds a set of bit flags representing the actions for the event.
For a list of possible values, have a look at the notify::op documentation.
Multiple actions may be delivered in a single event.
Implementations§
Source§impl Op
impl Op
Sourcepub const CLOSE_WRITE: Op
pub const CLOSE_WRITE: Op
File opened for writing was closed
Sourcepub fn from_bits(bits: u32) -> Option<Op>
pub fn from_bits(bits: u32) -> Option<Op>
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) -> Op
pub const fn from_bits_truncate(bits: u32) -> Op
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const fn intersects(&self, other: Op) -> bool
pub const fn intersects(&self, other: Op) -> bool
Returns true if there are flags common to both self and other.
Trait Implementations§
Source§impl BitAndAssign for Op
impl BitAndAssign for Op
Source§fn bitand_assign(&mut self, other: Op)
fn bitand_assign(&mut self, other: Op)
Disables all flags disabled in the set.
Source§impl BitOrAssign for Op
impl BitOrAssign for Op
Source§fn bitor_assign(&mut self, other: Op)
fn bitor_assign(&mut self, other: Op)
Adds the set of flags.
Source§impl BitXorAssign for Op
impl BitXorAssign for Op
Source§fn bitxor_assign(&mut self, other: Op)
fn bitxor_assign(&mut self, other: Op)
Toggles the set of flags.
Source§impl Extend<Op> for Op
impl Extend<Op> for Op
Source§fn extend<T: IntoIterator<Item = Op>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Op>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<Op> for Op
impl FromIterator<Op> for Op
Source§impl Ord for Op
impl Ord for Op
Source§impl PartialOrd for Op
impl PartialOrd for Op
Source§impl SubAssign for Op
impl SubAssign for Op
Source§fn sub_assign(&mut self, other: Op)
fn sub_assign(&mut self, other: Op)
Disables all flags enabled in the set.
impl Copy for Op
impl Eq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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