#[repr(C)]pub struct es_event_close_t {
pub modified: bool,
pub target: ShouldNotBeNull<es_file_t>,
pub anon0: es_event_close_t_anon_0,
}Available on macOS only.
Expand description
Close a file descriptor
This event type does not support caching (notify-only).
Fields§
§modified: boolSet to true if the target file being closed has been modified
The modified flag only reflects that a file was or was not modified by filesystem syscall.
If a file was only modifed though a memory mapping this flag will be false, but
was_mapped_writable (message version >= 6) will be true.
target: ShouldNotBeNull<es_file_t>The file that is being closed
anon0: es_event_close_t_anon_0Implementations§
Source§impl es_event_close_t
Accessors for ShouldNotBeNull fields
impl es_event_close_t
Accessors for ShouldNotBeNull fields
Sourcepub unsafe fn target(&self) -> &es_file_t
pub unsafe fn target(&self) -> &es_file_t
Gives a references to the field while checking for null.
§Safety
See ShouldNotBeNull safety requirements.
Auto Trait Implementations§
impl Freeze for es_event_close_t
impl RefUnwindSafe for es_event_close_t
impl !Send for es_event_close_t
impl !Sync for es_event_close_t
impl Unpin for es_event_close_t
impl UnwindSafe for es_event_close_t
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