Struct endpoint_sec::EventCopyFile
source · 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<EventCopyFile<'a>> for EventCopyFile<'a>
impl<'a> PartialEq<EventCopyFile<'a>> for EventCopyFile<'a>
impl<'a> Eq for EventCopyFile<'a>
impl Send for EventCopyFile<'_>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for EventCopyFile<'a>
impl<'a> !Sync 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