Enum nix::sys::event::EventFilter
source · #[non_exhaustive]#[repr(i16)]pub enum EventFilter {
EVFILT_AIO = -3,
EVFILT_FS = -9,
EVFILT_MACHPORT = -8,
EVFILT_PROC = -5,
EVFILT_READ = -1,
EVFILT_SIGNAL = -6,
EVFILT_TIMER = -7,
EVFILT_USER = -10,
EVFILT_VM = -12,
EVFILT_VNODE = -4,
EVFILT_WRITE = -2,
}
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 = -3
Notifies on the completion of a POSIX AIO operation.
EVFILT_FS = -9
Establishes a file system monitor.
EVFILT_MACHPORT = -8
Mach portsets
EVFILT_PROC = -5
Notifies when a process performs one or more of the requested events.
EVFILT_READ = -1
Takes a file descriptor as the identifier, and notifies whenever there is data available to read.
EVFILT_SIGNAL = -6
Takes a signal number to monitor as the identifier and notifies when the given signal is delivered to the process.
EVFILT_TIMER = -7
Establishes a timer and notifies when the timer expires.
EVFILT_USER = -10
Notifies only when explicitly requested by the user.
EVFILT_VM = -12
Virtual memory events
EVFILT_VNODE = -4
Notifies when a requested event happens on a specified file.
EVFILT_WRITE = -2
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 for EventFilter
impl PartialEq 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 for EventFilter
impl PartialOrd 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