Enum nix::sys::event::EventFilter
source · #[repr(i16)]#[non_exhaustive]pub enum EventFilter {
EVFILT_AIO,
EVFILT_FS,
EVFILT_MACHPORT,
EVFILT_PROC,
EVFILT_READ,
EVFILT_SIGNAL,
EVFILT_TIMER,
EVFILT_USER,
EVFILT_VM,
EVFILT_VNODE,
EVFILT_WRITE,
}
event
only.Expand description
Kqueue filter types. These are all the different types of event that a kqueue can notify for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EVFILT_AIO
Notifies on the completion of a POSIX AIO operation.
EVFILT_FS
Establishes a file system monitor.
EVFILT_MACHPORT
Mach portsets
EVFILT_PROC
Notifies when a process performs one or more of the requested events.
EVFILT_READ
Takes a file descriptor as the identifier, and notifies whenever there is data available to read.
EVFILT_SIGNAL
Takes a signal number to monitor as the identifier and notifies when the given signal is delivered to the process.
EVFILT_TIMER
Establishes a timer and notifies when the timer expires.
EVFILT_USER
Notifies only when explicitly requested by the user.
EVFILT_VM
Virtual memory events
EVFILT_VNODE
Notifies when a requested event happens on a specified file.
EVFILT_WRITE
Takes a file descriptor as the identifier, and notifies whenever it is possible to write to the file without blocking.
Trait Implementations§
source§impl Clone for EventFilter
impl Clone for EventFilter
source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventFilter
impl Debug for EventFilter
source§impl Hash for EventFilter
impl Hash for EventFilter
source§impl Ord for EventFilter
impl Ord for EventFilter
source§fn cmp(&self, other: &EventFilter) -> Ordering
fn cmp(&self, other: &EventFilter) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<EventFilter> for EventFilter
impl PartialEq<EventFilter> for EventFilter
source§fn eq(&self, other: &EventFilter) -> bool
fn eq(&self, other: &EventFilter) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EventFilter> for EventFilter
impl PartialOrd<EventFilter> for EventFilter
source§fn partial_cmp(&self, other: &EventFilter) -> Option<Ordering>
fn partial_cmp(&self, other: &EventFilter) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more