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§
Source§impl Clone for RenameMode
impl Clone for RenameMode
Source§fn clone(&self) -> RenameMode
fn clone(&self) -> RenameMode
Returns a copy 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 RenameMode
impl Debug for RenameMode
Source§impl Hash for RenameMode
impl Hash for RenameMode
Source§impl PartialEq for RenameMode
impl PartialEq for RenameMode
impl Copy for RenameMode
impl Eq for RenameMode
impl StructuralPartialEq for RenameMode
Auto Trait Implementations§
impl Freeze for RenameMode
impl RefUnwindSafe for RenameMode
impl Send for RenameMode
impl Sync for RenameMode
impl Unpin for RenameMode
impl UnwindSafe for RenameMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)