pub enum TargetMode {
TrackPath,
NoTrack,
}Expand description
Indicates what happens when the relationship of the physical entity and the file path changes
Variants§
TrackPath
Tracks the file path.
If the underlying physical entity (inode/File ID) at this path is replaced (e.g., by a move/rename operation), the watch continues to monitor the new entity that now occupies the path.
TODO: watching nested non-existent paths is not implemented yet. https://github.com/rolldown/notify/issues/32
NoTrack
Does not track the file path, nor the physical entity.
If the underlying physical entity (inode/File ID) is replaced (e.g., by a move/rename operation), the watch stops monitoring.
TODO: fsevents backend and Windows backend and polling backend does not unwatch on physical entity change yet. https://github.com/rolldown/notify/issues/33
Trait Implementations§
Source§impl Clone for TargetMode
impl Clone for TargetMode
Source§fn clone(&self) -> TargetMode
fn clone(&self) -> TargetMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetMode
impl Debug for TargetMode
Source§impl Hash for TargetMode
impl Hash for TargetMode
Source§impl Ord for TargetMode
impl Ord for TargetMode
Source§fn cmp(&self, other: &TargetMode) -> Ordering
fn cmp(&self, other: &TargetMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TargetMode
impl PartialEq for TargetMode
Source§impl PartialOrd for TargetMode
impl PartialOrd for TargetMode
impl Copy for TargetMode
impl Eq for TargetMode
impl StructuralPartialEq for TargetMode
Auto Trait Implementations§
impl Freeze for TargetMode
impl RefUnwindSafe for TargetMode
impl Send for TargetMode
impl Sync for TargetMode
impl Unpin for TargetMode
impl UnsafeUnpin for TargetMode
impl UnwindSafe for TargetMode
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