#[repr(C)]pub struct es_event_mmap_t {
pub protection: i32,
pub max_protection: i32,
pub flags: i32,
pub file_pos: u64,
pub source: ShouldNotBeNull<es_file_t>,
/* private fields */
}Available on macOS only.
Expand description
Memory map a file
Cache key for this event type: (process executable file, source file).
Fields§
§protection: i32The protection (region accessibility) value
max_protection: i32The maximum allowed protection value the operating system will respect
flags: i32The type and attributes of the mapped file
file_pos: u64The offset into source that will be mapped
source: ShouldNotBeNull<es_file_t>The file system object being mapped
Implementations§
Source§impl es_event_mmap_t
Accessors for ShouldNotBeNull fields
impl es_event_mmap_t
Accessors for ShouldNotBeNull fields
Sourcepub unsafe fn source(&self) -> &es_file_t
pub unsafe fn source(&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_mmap_t
impl RefUnwindSafe for es_event_mmap_t
impl !Send for es_event_mmap_t
impl !Sync for es_event_mmap_t
impl Unpin for es_event_mmap_t
impl UnwindSafe for es_event_mmap_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