Enum rustix::io::kqueue::EventFilter
source · #[non_exhaustive]#[repr(i16)]pub enum EventFilter {
Read(RawFd),
Write(RawFd),
Empty(RawFd),
Vnode {
vnode: RawFd,
flags: VnodeEvents,
},
Proc {
pid: Pid,
flags: ProcessEvents,
},
Signal {
signal: Signal,
times: usize,
},
Timer {
ident: intptr_t,
timer: Option<Duration>,
},
User {
ident: intptr_t,
flags: UserFlags,
user_flags: UserDefinedFlags,
},
Unknown,
}
Expand description
The possible filters for a kqueue
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Read(RawFd)
A read filter.
Write(RawFd)
A write filter.
Empty(RawFd)
An empty filter.
Vnode
Fields
§
flags: VnodeEvents
The flags for this event.
A VNode filter.
Proc
A process filter.
Signal
Fields
A signal filter.
Timer
Fields
A timer filter.
User
Fields
§
user_flags: UserDefinedFlags
The user-defined flags for this event.
A user filter.
Unknown
Auto Trait Implementations§
impl RefUnwindSafe for EventFilter
impl Send for EventFilter
impl Sync for EventFilter
impl Unpin for EventFilter
impl UnwindSafe for EventFilter
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