Enum notify::event::RenameMode
source · [−]pub enum RenameMode {
Any,
To,
From,
Both,
Other,
}
Expand description
An event emitted when the name of a file or folder is changed.
Variants
Any
The catch-all case, to be used when the specific kind of event is unknown.
To
An event emitted on the file or folder resulting from a rename.
From
An event emitted on the file or folder that was renamed.
Both
A single event emitted with both the From
and To
paths.
This event should be emitted when both source and target are known. The paths should be provided in this exact order (from, to).
Other
An event which specific kind is known but cannot be represented otherwise.
Trait Implementations
sourceimpl Clone for RenameMode
impl Clone for RenameMode
sourcefn clone(&self) -> RenameMode
fn clone(&self) -> RenameMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RenameMode
impl Debug for RenameMode
sourceimpl Hash for RenameMode
impl Hash for RenameMode
sourceimpl PartialEq<RenameMode> for RenameMode
impl PartialEq<RenameMode> for RenameMode
impl Copy for RenameMode
impl Eq for RenameMode
impl StructuralEq for RenameMode
impl StructuralPartialEq for RenameMode
Auto Trait Implementations
impl RefUnwindSafe for RenameMode
impl Send for RenameMode
impl Sync for RenameMode
impl Unpin for RenameMode
impl UnwindSafe for RenameMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more