Struct mio::Selector
[−]
[src]
pub struct Selector { /* fields omitted */ }
Methods
impl Selector
[src]
fn new() -> Result<Selector>
fn id(&self) -> usize
fn select(&mut self, evts: &mut Events, timeout_ms: Option<usize>) -> Result<()>
Wait for events from the OS
fn register(
&mut self,
fd: RawFd,
token: Token,
interests: EventSet,
opts: PollOpt
) -> Result<()>
&mut self,
fd: RawFd,
token: Token,
interests: EventSet,
opts: PollOpt
) -> Result<()>
Register event interests for the given IO handle with the OS
fn reregister(
&mut self,
fd: RawFd,
token: Token,
interests: EventSet,
opts: PollOpt
) -> Result<()>
&mut self,
fd: RawFd,
token: Token,
interests: EventSet,
opts: PollOpt
) -> Result<()>
Register event interests for the given IO handle with the OS
fn deregister(&mut self, fd: RawFd) -> Result<()>
Deregister event interests for the given IO handle with the OS