pub enum EventRenameDestinationFile<'a> {
ExistingFile(File<'a>),
NewPath {
directory: File<'a>,
filename: &'a OsStr,
},
}
Available on macOS only.
Expand description
Represent a destination file for EventRename
.
Variants§
ExistingFile(File<'a>)
The destination file already exist at the time of the event.
NewPath
The destination doesn’t exist at the time of the event.
Trait Implementations§
Source§impl<'a> Debug for EventRenameDestinationFile<'a>
impl<'a> Debug for EventRenameDestinationFile<'a>
Source§impl<'a> Hash for EventRenameDestinationFile<'a>
impl<'a> Hash for EventRenameDestinationFile<'a>
Source§impl<'a> PartialEq for EventRenameDestinationFile<'a>
impl<'a> PartialEq for EventRenameDestinationFile<'a>
Source§fn eq(&self, other: &EventRenameDestinationFile<'a>) -> bool
fn eq(&self, other: &EventRenameDestinationFile<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<'a> Eq for EventRenameDestinationFile<'a>
impl<'a> StructuralPartialEq for EventRenameDestinationFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for EventRenameDestinationFile<'a>
impl<'a> RefUnwindSafe for EventRenameDestinationFile<'a>
impl<'a> Send for EventRenameDestinationFile<'a>
impl<'a> !Sync for EventRenameDestinationFile<'a>
impl<'a> Unpin for EventRenameDestinationFile<'a>
impl<'a> UnwindSafe for EventRenameDestinationFile<'a>
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