pub struct Event { /* private fields */ }
Expand description
A kqueue
event for use with kevent
.
Implementations§
Source§impl Event
impl Event
Sourcepub fn new(filter: EventFilter, flags: EventFlags, udata: isize) -> Event
pub fn new(filter: EventFilter, flags: EventFlags, udata: isize) -> Event
Create a new Event
.
Sourcepub fn flags(&self) -> EventFlags
pub fn flags(&self) -> EventFlags
Get the event flags for this event.
Sourcepub fn filter(&self) -> EventFilter
pub fn filter(&self) -> EventFilter
Get the filter of this event.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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