#[non_exhaustive]#[repr(i16)]pub enum EventFilter {
Read(RawFd),
Write(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.
Vnode
A VNode filter.
Fields
§
flags: VnodeEvents
The flags for this event.
Proc
A process filter.
Signal
A signal filter.
Fields
Timer
A timer filter.
Fields
User
A user filter.
Fields
§
user_flags: UserDefinedFlags
The user-defined flags for this event.
Unknown
Auto Trait Implementations§
impl Freeze for EventFilter
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