Struct nix::sys::fanotify::FanotifyEvent
source · pub struct FanotifyEvent(/* private fields */);
Expand description
Abstract over libc::fanotify_event_metadata
, which represents an event
received via Fanotify::read_events
.
Implementations§
source§impl FanotifyEvent
impl FanotifyEvent
sourcepub fn version(&self) -> u8
pub fn version(&self) -> u8
Version number for the structure. It must be compared to
FANOTIFY_METADATA_VERSION
to verify compile version and runtime
version does match. It can be done with the
FanotifyEvent::check_version
method.
sourcepub fn check_version(&self) -> bool
pub fn check_version(&self) -> bool
Checks that compile fanotify API version is equal to the version of the event.
sourcepub fn fd(&self) -> Option<BorrowedFd<'_>>
pub fn fd(&self) -> Option<BorrowedFd<'_>>
The file descriptor of the event. If the value is None
when reading
from the fanotify group, this event is to notify that a group queue
overflow occured.
Trait Implementations§
source§impl Debug for FanotifyEvent
impl Debug for FanotifyEvent
source§impl Drop for FanotifyEvent
impl Drop for FanotifyEvent
source§impl Hash for FanotifyEvent
impl Hash for FanotifyEvent
source§impl PartialEq for FanotifyEvent
impl PartialEq for FanotifyEvent
impl Eq for FanotifyEvent
impl StructuralPartialEq for FanotifyEvent
Auto Trait Implementations§
impl Freeze for FanotifyEvent
impl RefUnwindSafe for FanotifyEvent
impl Send for FanotifyEvent
impl Sync for FanotifyEvent
impl Unpin for FanotifyEvent
impl UnwindSafe for FanotifyEvent
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