pub enum EventCreateDestinationFile<'a> {
ExistingFile(File<'a>),
NewPath {
directory: File<'a>,
filename: &'a OsStr,
mode: mode_t,
},
}
Available on macOS only.
Expand description
Represent a destination file for EventCreate
.
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 EventCreateDestinationFile<'a>
impl<'a> Debug for EventCreateDestinationFile<'a>
Source§impl<'a> Hash for EventCreateDestinationFile<'a>
impl<'a> Hash for EventCreateDestinationFile<'a>
Source§impl<'a> PartialEq for EventCreateDestinationFile<'a>
impl<'a> PartialEq for EventCreateDestinationFile<'a>
Source§fn eq(&self, other: &EventCreateDestinationFile<'a>) -> bool
fn eq(&self, other: &EventCreateDestinationFile<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<'a> Eq for EventCreateDestinationFile<'a>
impl<'a> StructuralPartialEq for EventCreateDestinationFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for EventCreateDestinationFile<'a>
impl<'a> RefUnwindSafe for EventCreateDestinationFile<'a>
impl<'a> Send for EventCreateDestinationFile<'a>
impl<'a> !Sync for EventCreateDestinationFile<'a>
impl<'a> Unpin for EventCreateDestinationFile<'a>
impl<'a> UnwindSafe for EventCreateDestinationFile<'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