pub struct ParsedEventMask {
pub kind: Option<EventKind>,
pub auxiliary_flags: EventAuxiliaryFlags,
}Expand description
A struct that provides structured access to event masks returned from reading an event from an inotify fd
Fields§
§kind: Option<EventKind>The kind of event that occurred
Inotify events that come from the kernel have exactly 0 or 1 of the flags associated with the event type set.
auxiliary_flags: EventAuxiliaryFlagsThe auxiliary flags about the event
Implementations§
Source§impl ParsedEventMask
impl ParsedEventMask
Sourcepub fn from_parts(
kind: Option<EventKind>,
auxiliary_flags: EventAuxiliaryFlags,
) -> Self
pub fn from_parts( kind: Option<EventKind>, auxiliary_flags: EventAuxiliaryFlags, ) -> Self
Construct a ParsedEventMask from its component parts
Sourcepub fn from_raw_event_mask(mask: EventMask) -> Result<Self, EventMaskParseError>
pub fn from_raw_event_mask(mask: EventMask) -> Result<Self, EventMaskParseError>
Parse a raw event mask
Trait Implementations§
Source§impl Clone for ParsedEventMask
impl Clone for ParsedEventMask
Source§fn clone(&self) -> ParsedEventMask
fn clone(&self) -> ParsedEventMask
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedEventMask
impl Debug for ParsedEventMask
Source§impl Hash for ParsedEventMask
impl Hash for ParsedEventMask
Source§impl PartialEq for ParsedEventMask
impl PartialEq for ParsedEventMask
Source§impl TryFrom<EventMask> for ParsedEventMask
impl TryFrom<EventMask> for ParsedEventMask
impl Copy for ParsedEventMask
impl Eq for ParsedEventMask
impl StructuralPartialEq for ParsedEventMask
Auto Trait Implementations§
impl Freeze for ParsedEventMask
impl RefUnwindSafe for ParsedEventMask
impl Send for ParsedEventMask
impl Sync for ParsedEventMask
impl Unpin for ParsedEventMask
impl UnwindSafe for ParsedEventMask
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