Fields
id: usize
epfd: RawFd
Implementations
sourceimpl Selector
impl Selector
pub fn new() -> Result<Selector>
pub fn id(&self) -> usize
sourcepub fn select(
&self,
evts: &mut Events,
awakener: Token,
timeout: Option<Duration>
) -> Result<bool>
pub fn select(
&self,
evts: &mut Events,
awakener: Token,
timeout: Option<Duration>
) -> Result<bool>
Wait for events from the OS
sourcepub fn register(
&self,
fd: RawFd,
token: Token,
interests: Ready,
opts: PollOpt
) -> Result<()>
pub fn register(
&self,
fd: RawFd,
token: Token,
interests: Ready,
opts: PollOpt
) -> Result<()>
Register event interests for the given IO handle with the OS
sourcepub fn reregister(
&self,
fd: RawFd,
token: Token,
interests: Ready,
opts: PollOpt
) -> Result<()>
pub fn reregister(
&self,
fd: RawFd,
token: Token,
interests: Ready,
opts: PollOpt
) -> Result<()>
Register event interests for the given IO handle with the OS
sourcepub fn deregister(&self, fd: RawFd) -> Result<()>
pub fn deregister(&self, fd: RawFd) -> Result<()>
Deregister event interests for the given IO handle with the OS
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more