#[repr(C)]pub struct es_file_t {
pub path: es_string_token_t,
pub path_truncated: bool,
pub stat: stat,
}Available on macOS only.
Expand description
Provides the stat information and path to a file that relates to a security
event. The path may be truncated, which is indicated by the path_truncated flag.
For the FAT family of filesystems the stat.st_ino field is set to 999999999 for empty files.
For files with a link count greater than 1, the absolute path given may not be the only absolute path that exists, and which hard link the emitted path points to is undefined.
Overlong paths are truncated at a maximum length that currently is 16K, though that number is not considered API and may change at any time.
Fields§
§path: es_string_token_tAbsolute path of the file
path_truncated: boolIndicates if the path field was truncated
stat: statInformations about the file. See man 2 stat for details
Auto Trait Implementations§
impl Freeze for es_file_t
impl RefUnwindSafe for es_file_t
impl !Send for es_file_t
impl !Sync for es_file_t
impl Unpin for es_file_t
impl UnwindSafe for es_file_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