pub struct EventCopyFile<'a> { /* private fields */ }
Available on crate feature
macos_12_0_0
and macOS only.Expand description
Copy a file using the copyfile()
system call.
Note: Not to be confused with copyfile(3)
.
Note: Prior to macOS 12.0, the copyfile syscall fired open, unlink and auth create events, but no notify create, nor write or close events.
Implementations§
Source§impl<'a> EventCopyFile<'a>
impl<'a> EventCopyFile<'a>
Sourcepub fn target_file(&self) -> Option<File<'a>>
pub fn target_file(&self) -> Option<File<'a>>
The file that will be overwritten by the operation, if any.
Sourcepub fn target_dir(&self) -> File<'a>
pub fn target_dir(&self) -> File<'a>
The directory into which the Self::source()
file will be copied.
Sourcepub fn target_name(&self) -> &'a OsStr
pub fn target_name(&self) -> &'a OsStr
Name of the new file to which Self::source()
will be copied.
Trait Implementations§
Source§impl<'a> Debug for EventCopyFile<'a>
impl<'a> Debug for EventCopyFile<'a>
Source§impl<'a> Hash for EventCopyFile<'a>
impl<'a> Hash for EventCopyFile<'a>
Source§impl<'a> PartialEq for EventCopyFile<'a>
impl<'a> PartialEq for EventCopyFile<'a>
impl<'a> Eq for EventCopyFile<'a>
impl Send for EventCopyFile<'_>
impl Sync for EventCopyFile<'_>
Auto Trait Implementations§
impl<'a> Freeze for EventCopyFile<'a>
impl<'a> RefUnwindSafe for EventCopyFile<'a>
impl<'a> Unpin for EventCopyFile<'a>
impl<'a> UnwindSafe for EventCopyFile<'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