#[repr(C)]pub struct KEvent { /* private fields */ }
Available on crate feature
event
only.Expand description
A kernel event queue. Used to notify a process of various asynchronous events.
Implementations§
source§impl KEvent
impl KEvent
sourcepub fn new(
ident: uintptr_t,
filter: EventFilter,
flags: EventFlag,
fflags: FilterFlag,
data: intptr_t,
udata: intptr_t
) -> KEvent
pub fn new( ident: uintptr_t, filter: EventFilter, flags: EventFlag, fflags: FilterFlag, data: intptr_t, udata: intptr_t ) -> KEvent
Construct a new KEvent
suitable for submission to the kernel via the
changelist
argument of Kqueue::kevent
.
sourcepub fn ident(&self) -> uintptr_t
pub fn ident(&self) -> uintptr_t
Value used to identify this event. The exact interpretation is determined by the attached filter, but often is a raw file descriptor.
sourcepub fn filter(&self) -> Result<EventFilter>
pub fn filter(&self) -> Result<EventFilter>
Identifies the kernel filter used to process this event.
Will only return an error if the kernel reports an event via a filter that is unknown to Nix.
sourcepub fn flags(&self) -> EventFlag
pub fn flags(&self) -> EventFlag
Flags control what the kernel will do when this event is added with
Kqueue::kevent
.
sourcepub fn fflags(&self) -> FilterFlag
pub fn fflags(&self) -> FilterFlag
Filter-specific flags.
Trait Implementations§
source§impl PartialEq<KEvent> for KEvent
impl PartialEq<KEvent> for KEvent
impl Copy for KEvent
impl Eq for KEvent
impl Send for KEvent
impl StructuralEq for KEvent
impl StructuralPartialEq for KEvent
Auto Trait Implementations§
impl RefUnwindSafe for KEvent
impl !Sync for KEvent
impl Unpin for KEvent
impl UnwindSafe for KEvent
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