pub struct WatchingEvents(/* private fields */);Expand description
Watching events taken by PollContext.
Implementations§
Source§impl WatchingEvents
impl WatchingEvents
Sourcepub fn empty() -> WatchingEvents
pub fn empty() -> WatchingEvents
Returns empty Events.
Sourcepub fn new(raw: u32) -> WatchingEvents
pub fn new(raw: u32) -> WatchingEvents
Build Events from raw epoll events (defined in epoll_ctl(2)).
Sourcepub fn set_read(self) -> WatchingEvents
pub fn set_read(self) -> WatchingEvents
Set read events.
Sourcepub fn set_write(self) -> WatchingEvents
pub fn set_write(self) -> WatchingEvents
Set write events.
Auto Trait Implementations§
impl Freeze for WatchingEvents
impl RefUnwindSafe for WatchingEvents
impl Send for WatchingEvents
impl Sync for WatchingEvents
impl Unpin for WatchingEvents
impl UnwindSafe for WatchingEvents
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