#[non_exhaustive]pub enum EventCreateDestinationFile<'a> {
#[non_exhaustive] ExistingFile {
file: File<'a>,
},
#[non_exhaustive] NewPath {
directory: File<'a>,
filename: &'a OsStr,
mode: mode_t,
},
}Available on macOS only.
Expand description
Represent a destination file for EventCreate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]ExistingFile
The destination file already exist at the time of the event.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]NewPath
The destination doesn’t exist at the time of the event.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Trait Implementations§
Source§impl<'a> Debug for EventCreateDestinationFile<'a>
impl<'a> Debug for EventCreateDestinationFile<'a>
impl<'a> Eq 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> StructuralPartialEq for EventCreateDestinationFile<'a>
Auto Trait Implementations§
impl<'a> !Sync for EventCreateDestinationFile<'a>
impl<'a> Freeze for EventCreateDestinationFile<'a>
impl<'a> RefUnwindSafe for EventCreateDestinationFile<'a>
impl<'a> Send for EventCreateDestinationFile<'a>
impl<'a> Unpin for EventCreateDestinationFile<'a>
impl<'a> UnsafeUnpin for EventCreateDestinationFile<'a>
impl<'a> UnwindSafe for EventCreateDestinationFile<'a>
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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