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 WatchingEvents
.
Sourcepub fn new(raw: u32) -> WatchingEvents
pub fn new(raw: u32) -> WatchingEvents
Creates a new WatchingEvents
with a specified value.
Builds WatchingEvents
from raw epoll_event
.
§Arguments
raw
: the events to be created for watching.
Sourcepub fn set_read(self) -> WatchingEvents
pub fn set_read(self) -> WatchingEvents
Sets read events.
Sets the events to be readable.
Sourcepub fn set_write(self) -> WatchingEvents
pub fn set_write(self) -> WatchingEvents
Sets write events.
Sets the events to be writable.
Trait Implementations§
Source§impl Clone for WatchingEvents
impl Clone for WatchingEvents
Source§fn clone(&self) -> WatchingEvents
fn clone(&self) -> WatchingEvents
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WatchingEvents
impl Debug for WatchingEvents
impl Copy for WatchingEvents
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